Package org.apache.tomcat.jdbc.pool
Class FairBlockingQueue.ItemFuture<T>
java.lang.Object
org.apache.tomcat.jdbc.pool.FairBlockingQueue.ItemFuture<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Field Details
-
item
-
latch
-
canceled
protected volatile boolean canceled
-
-
Constructor Details
-
ItemFuture
-
ItemFuture
-
-
Method Details
-
cancel
-
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
-