setLockTimeout(int timeout)

Syntax:

void setLockTimeout(int timeout) throws SQLException

Description:

Tells the underlying database engine how long to wait (in seconds) for locks. The default is 10 seconds.

This is not a part of the JDBC Connection interface, so to access it you must cast the Connection to an RDMConnection.

Parameters:

timeout

The number of seconds to wait for locks. 0 means don't wait at all. -1 means to wait indefinitely

Throws:

SQLException - if a database access error occurs