Package org.apache.tomcat.jdbc.pool
Class MultiLockFairBlockingQueue.ItemFuture<T>
java.lang.Object
org.apache.tomcat.jdbc.pool.MultiLockFairBlockingQueue.ItemFuture<T>
- All Implemented Interfaces:
Future<T>
- Enclosing class:
- MultiLockFairBlockingQueue<E>
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected T
protected MultiLockFairBlockingQueue<E>.ExchangeCountDownLatch<T>
-
Constructor Summary
-
Method Summary
-
Field Details
-
item
-
latch
-
canceled
protected volatile boolean canceled
-
-
Constructor Details
-
ItemFuture
-
ItemFuture
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
get
- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone()
-