8.3.19 getNetworkTimeout()
- Organization of this subsection
(1) Function
This method acquires the timeout time set by the setNetworkTimeout method.
(2) Format
public synchronized int getNetworkTimeout() throws SQLException
(3) Arguments
None.
(4) Return value
The method returns the timeout time for SQL processing (in milliseconds) set by the setNetworkTimeout method. If the setNetworkTimeout method has not been executed, 0 is returned.
(5) Exceptions
If this Connection object is closed, the JDBC driver throws an SQLException.