This method of the Connection class indicates, in seconds, how long to wait for a command to execute.
public int getCommandTimeout();
Returns an integer representing seconds.