private static final class GenericObjectPool.Latch<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
_mayCreate
Whether or not this latch may create an object instance
|
private GenericKeyedObjectPool.ObjectTimestampPair<T> |
_pair
object timestamp pair allocated to this latch
|
Modifier | Constructor and Description |
---|---|
private |
Latch() |
Modifier and Type | Method and Description |
---|---|
private GenericKeyedObjectPool.ObjectTimestampPair<T> |
getPair()
Returns ObjectTimestampPair allocated to this latch
|
private boolean |
mayCreate()
Whether or not this latch may create an object instance
|
private void |
reset()
Reset the latch data.
|
private void |
setMayCreate(boolean mayCreate)
Sets the mayCreate property
|
private void |
setPair(GenericKeyedObjectPool.ObjectTimestampPair<T> pair)
Sets ObjectTimestampPair on this latch
|
private GenericKeyedObjectPool.ObjectTimestampPair<T> _pair
private boolean _mayCreate
private GenericKeyedObjectPool.ObjectTimestampPair<T> getPair()
private void setPair(GenericKeyedObjectPool.ObjectTimestampPair<T> pair)
pair
- ObjectTimestampPair allocated to this latchprivate boolean mayCreate()
private void setMayCreate(boolean mayCreate)
mayCreate
- new value for mayCreateprivate void reset()