protected class ConnectionPool.ConnectionFuture extends Object implements Future<Connection>, Runnable
Constructor and Description |
---|
ConnectionPool.ConnectionFuture(Future<PooledConnection> pcf) |
ConnectionPool.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 ConnectionPool.ConnectionFuture(Future<PooledConnection> pcf)
public ConnectionPool.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-2021 Apache Software Foundation. All Rights Reserved.