Package org.apache.commons.pool.impl
Class GenericKeyedObjectPool.ObjectQueue
- java.lang.Object
-
- org.apache.commons.pool.impl.GenericKeyedObjectPool.ObjectQueue
-
- Enclosing class:
- GenericKeyedObjectPool<K,V>
private class GenericKeyedObjectPool.ObjectQueue extends java.lang.ObjectA "struct" that keeps additional information about the actual queue of pooled objects.
-
-
Field Summary
Fields Modifier and Type Field Description private intactiveCountNumber of instances checked out to clients from this queueprivate intinternalProcessingCountNumber of instances in process of being createdprivate CursorableLinkedList<GenericKeyedObjectPool.ObjectTimestampPair<V>>queueIdle instance queue
-
Constructor Summary
Constructors Modifier Constructor Description privateObjectQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voiddecrementActiveCount()Decrement the active count for this queue(package private) voiddecrementInternalProcessingCount()Decrement the number of instances in process of being created(package private) voidincrementActiveCount()Increment the active count for this queue(package private) voidincrementInternalProcessingCount()Record the fact that one more instance is queued for creation
-
-
-
Field Detail
-
activeCount
private int activeCount
Number of instances checked out to clients from this queue
-
queue
private final CursorableLinkedList<GenericKeyedObjectPool.ObjectTimestampPair<V>> queue
Idle instance queue
-
internalProcessingCount
private int internalProcessingCount
Number of instances in process of being created
-
-
Method Detail
-
incrementActiveCount
void incrementActiveCount()
Increment the active count for this queue
-
decrementActiveCount
void decrementActiveCount()
Decrement the active count for this queue
-
incrementInternalProcessingCount
void incrementInternalProcessingCount()
Record the fact that one more instance is queued for creation
-
decrementInternalProcessingCount
void decrementInternalProcessingCount()
Decrement the number of instances in process of being created
-
-