public abstract int getLoginTimeout () throws SQLException

Gets the maximum time in seconds that this data source can wait while attempting to connect to a database. A value of zero means that the timeout is the default system timeout if there is one; otherwise, it means that there is no timeout. When a DataSource object is created, the login timeout is initially zero.

Returns:  the data source login time limit

Exceptions:
SQLException    if a database access error occurs.

See also:
setLoginTimeout