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.Object
A "struct" that keeps additional information about the actual queue of pooled objects.
-
-
Field Summary
Fields Modifier and Type Field Description private int
activeCount
Number of instances checked out to clients from this queueprivate int
internalProcessingCount
Number of instances in process of being createdprivate CursorableLinkedList<GenericKeyedObjectPool.ObjectTimestampPair<V>>
queue
Idle instance queue
-
Constructor Summary
Constructors Modifier Constructor Description private
ObjectQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
decrementActiveCount()
Decrement the active count for this queue(package private) void
decrementInternalProcessingCount()
Decrement the number of instances in process of being created(package private) void
incrementActiveCount()
Increment the active count for this queue(package private) void
incrementInternalProcessingCount()
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
-
-