Package org.apache.tomcat.jdbc.pool
Class FairBlockingQueue.ItemFuture<T>
java.lang.Object
org.apache.tomcat.jdbc.pool.FairBlockingQueue.ItemFuture<T>
- All Implemented Interfaces:
Future<T>
- Enclosing class:
- FairBlockingQueue<E>
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected T
protected FairBlockingQueue<E>.ExchangeCountDownLatch<T>
-
Constructor Summary
ConstructorDescriptionItemFuture
(FairBlockingQueue<E>.ExchangeCountDownLatch<T> latch) ItemFuture
(T item) -
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()
-