Hitachi

Hitachi Advanced Database Application Development Guide


10.2.6 setLoginTimeout(int seconds)

Organization of this subsection

(1) Function

This method specifies a timeout value (in seconds) for HADB server connection processing.

This timeout value is applied when the getConnection method is used to connect to the HADB server.

(2) Format

public synchronized void setLoginTimeout(int seconds) throws SQLException

(3) Arguments

int seconds

Specifies a timeout value in the range from 0 to 300 (seconds) for HADB server connection processing.

If 0 is specified, the value specified for adb_clt_rpc_con_wait_time in the system properties, user properties, or connection URL properties is assumed. If adb_clt_rpc_con_wait_time is not specified, the default value of adb_clt_rpc_con_wait_time is assumed.

(4) Return value

None.

(5) Exceptions

If an invalid value (a value less than 1 or greater than 300) is specified for seconds, the JDBC driver throws an SQLException.

(6) Notes

You can set timeout times for connections with the HADB server in a number of locations, such as in various properties and methods. For information about the relative priorities that determine which timeout time applies to connections with the HADB server, see (1) Connection information needed when a connection to the HADB server is established in 7.3.3 Connection information priorities.