protected class ConnectionPool.ConnectionFuture extends Object implements Future<Connection>, Runnable
Constructor and Description |
---|
ConnectionFuture(Future<PooledConnection> pcf) |
ConnectionFuture(PooledConnection pc) |
Modifier and Type | Method and Description |
---|---|
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
|
public ConnectionFuture(Future<PooledConnection> pcf)
public ConnectionFuture(PooledConnection pc) throws SQLException
SQLException
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
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<Connection>
public boolean isDone()
isDone
in interface Future<Connection>
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.