private static class Driver.ConnectThread
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private boolean |
abandoned |
private java.util.Properties |
props |
private java.sql.Connection |
result |
private java.lang.Throwable |
resultException |
private java.lang.String |
url |
Constructor and Description |
---|
ConnectThread(java.lang.String url,
java.util.Properties props) |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getResult(long timeout)
Get the connection result from this (assumed running) thread.
|
void |
run() |
private final java.lang.String url
private final java.util.Properties props
private java.sql.Connection result
private java.lang.Throwable resultException
private boolean abandoned
public void run()
run
in interface java.lang.Runnable
public java.sql.Connection getResult(long timeout) throws java.sql.SQLException
timeout
- timeout in millisecondsjava.sql.SQLException
- if a connection error occurs or the timeout is reached