|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.jdbc.pool.ConnectionPool.ConnectionFuture
protected class ConnectionPool.ConnectionFuture
Tread safe wrapper around a future for the regular queue This one retrieves the pooled connection object and performs the initialization according to interceptors and validation rules. This class is thread safe and is cancellable
| Constructor Summary | |
|---|---|
ConnectionPool.ConnectionFuture(Future<PooledConnection> pcf)
|
|
ConnectionPool.ConnectionFuture(PooledConnection pc)
|
|
| Method Summary | |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
|
Connection |
get()
|
Connection |
get(long timeout,
TimeUnit unit)
|
boolean |
isCancelled()
|
boolean |
isDone()
|
void |
run()
run method to be executed when cancelled by an executor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionPool.ConnectionFuture(Future<PooledConnection> pcf)
public ConnectionPool.ConnectionFuture(PooledConnection pc)
throws SQLException
SQLException| Method Detail |
|---|
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<Connection>
public Connection get()
throws InterruptedException,
ExecutionException
get in interface Future<Connection>InterruptedException
ExecutionException
public Connection get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
get in interface Future<Connection>InterruptedException
ExecutionException
TimeoutExceptionpublic boolean isCancelled()
isCancelled in interface Future<Connection>public boolean isDone()
isDone in interface Future<Connection>public void run()
run in interface Runnable
|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||