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>
class BaseGenericObjectPool.EvictionIterator extends Object implements Iterator<PooledObject<T>>
The idle object eviction iterator. Holds a reference to the idle objects.
-
-
Constructor Summary
Constructors Constructor Description EvictionIterator(Deque<PooledObject<T>> idleObjects)Constructs an EvictionIterator for the provided idle instance deque.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Deque<PooledObject<T>>getIdleObjects()Gets the idle object deque referenced by this iterator.booleanhasNext()PooledObject<T>next()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
EvictionIterator
EvictionIterator(Deque<PooledObject<T>> idleObjects)
Constructs an EvictionIterator for the provided idle instance deque.- Parameters:
idleObjects- underlying deque.
-
-
Method Detail
-
getIdleObjects
public Deque<PooledObject<T>> 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
public PooledObject<T> next()
- Specified by:
nextin interfaceIterator<PooledObject<T>>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<PooledObject<T>>
-
-