Package org.apache.commons.pool.impl
Class GenericKeyedObjectPool.ObjectQueue
java.lang.Object
org.apache.commons.pool.impl.GenericKeyedObjectPool.ObjectQueue
- Enclosing class:
- GenericKeyedObjectPool<K,
V>
A "struct" that keeps additional information about the actual queue of pooled objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Number of instances checked out to clients from this queueprivate int
Number of instances in process of being createdprivate final CursorableLinkedList<GenericKeyedObjectPool.ObjectTimestampPair<V>>
Idle instance queue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Decrement the active count for this queue(package private) void
Decrement the number of instances in process of being created(package private) void
Increment the active count for this queue(package private) void
Record the fact that one more instance is queued for creation
-
Field Details
-
activeCount
private int activeCountNumber of instances checked out to clients from this queue -
queue
Idle instance queue -
internalProcessingCount
private int internalProcessingCountNumber of instances in process of being created
-
-
Constructor Details
-
ObjectQueue
private ObjectQueue()
-
-
Method Details
-
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
-