Package org.apache.commons.pool2.impl
Class BaseGenericObjectPool.EvictionIterator
java.lang.Object
org.apache.commons.pool2.impl.BaseGenericObjectPool.EvictionIterator
- All Implemented Interfaces:
Iterator<PooledObject<T>>
- Enclosing class:
- BaseGenericObjectPool<T>
The idle object eviction iterator. Holds a reference to the idle objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Iterator<PooledObject<T>>private final Deque<PooledObject<T>> -
Constructor Summary
ConstructorsConstructorDescriptionEvictionIterator(Deque<PooledObject<T>> idleObjects) Constructs an EvictionIterator for the provided idle instance deque. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
idleObjects
-
idleObjectIterator
-
-
Constructor Details
-
EvictionIterator
EvictionIterator(Deque<PooledObject<T>> idleObjects) Constructs an EvictionIterator for the provided idle instance deque.- Parameters:
idleObjects- underlying deque.
-
-
Method Details
-
getIdleObjects
Gets the idle object deque referenced by this iterator.- Returns:
- the idle object deque
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<PooledObject<T>>
-
next
- Specified by:
nextin interfaceIterator<PooledObject<T>>
-
remove
public void remove()- Specified by:
removein interfaceIterator<PooledObject<T>>
-