Package org.apache.tomcat.jdbc.pool
Class FairBlockingQueue.ExchangeCountDownLatch<T>
- java.lang.Object
-
- java.util.concurrent.CountDownLatch
-
- org.apache.tomcat.jdbc.pool.FairBlockingQueue.ExchangeCountDownLatch<T>
-
- Type Parameters:
T- the type of the item to exchange
- Enclosing class:
- FairBlockingQueue<E>
protected class FairBlockingQueue.ExchangeCountDownLatch<T> extends java.util.concurrent.CountDownLatchA count down latch that can be used to exchange information.
-
-
Constructor Summary
Constructors Constructor Description ExchangeCountDownLatch(int i)Creates a new ExchangeCountDownLatch with the given count.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetItem()Returns the exchanged item.voidsetItem(T item)Sets the item to be exchanged.
-
-
-
Field Detail
-
item
protected volatile T item
The item to exchange.
-
-