Package org.apache.tomcat.jdbc.pool
Class MultiLockFairBlockingQueue.ItemFuture<T>
- java.lang.Object
- 
- org.apache.tomcat.jdbc.pool.MultiLockFairBlockingQueue.ItemFuture<T>
 
- 
- All Implemented Interfaces:
- java.util.concurrent.Future<T>
 - Enclosing class:
- MultiLockFairBlockingQueue<E>
 
 protected class MultiLockFairBlockingQueue.ItemFuture<T> extends java.lang.Object implements java.util.concurrent.Future<T>
- 
- 
Constructor SummaryConstructors Constructor Description ItemFuture(MultiLockFairBlockingQueue.ExchangeCountDownLatch<T> latch)ItemFuture(T item)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Tget()Tget(long timeout, java.util.concurrent.TimeUnit unit)booleanisCancelled()booleanisDone()
 
- 
- 
- 
Field Detail- 
itemprotected volatile T item 
 - 
latchprotected volatile MultiLockFairBlockingQueue.ExchangeCountDownLatch<T> latch 
 - 
canceledprotected volatile boolean canceled 
 
- 
 - 
Constructor Detail- 
ItemFuturepublic ItemFuture(T item) 
 - 
ItemFuturepublic ItemFuture(MultiLockFairBlockingQueue.ExchangeCountDownLatch<T> latch) 
 
- 
 - 
Method Detail- 
cancelpublic boolean cancel(boolean mayInterruptIfRunning) - Specified by:
- cancelin interface- java.util.concurrent.Future<T>
 
 - 
getpublic T get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException - Specified by:
- getin interface- java.util.concurrent.Future<T>
- Throws:
- java.lang.InterruptedException
- java.util.concurrent.ExecutionException
 
 - 
getpublic T get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException - Specified by:
- getin interface- java.util.concurrent.Future<T>
- Throws:
- java.lang.InterruptedException
- java.util.concurrent.ExecutionException
- java.util.concurrent.TimeoutException
 
 - 
isCancelledpublic boolean isCancelled() - Specified by:
- isCancelledin interface- java.util.concurrent.Future<T>
 
 - 
isDonepublic boolean isDone() - Specified by:
- isDonein interface- java.util.concurrent.Future<T>
 
 
- 
 
-