Class Driver.ConnectThread
java.lang.Object
org.postgresql.Driver.ConnectThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
Driver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final ResourceLockprivate final Conditionprivate final Propertiesprivate Connectionprivate Throwableprivate final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lock
-
lockCondition
-
url
-
props
-
result
-
resultException
-
abandoned
private boolean abandoned
-
-
Constructor Details
-
ConnectThread
ConnectThread(String url, Properties props)
-
-
Method Details
-
run
-
getResult
Get the connection result from this (assumed running) thread. If the timeout is reached without a result being available, a SQLException is thrown.- Parameters:
timeout- timeout in milliseconds- Returns:
- the new connection, if successful
- Throws:
SQLException- if a connection error occurs or the timeout is reached
-