Class BaseGenericObjectPool.EvictionIterator
java.lang.Object
org.datanucleus.store.rdbms.datasource.dbcp2.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.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Iterator<PooledObject<T>> private final Deque<PooledObject<T>> -
Constructor Summary
ConstructorsConstructorDescriptionEvictionIterator(Deque<PooledObject<T>> idleObjects) Create an EvictionIterator for the provided idle instance deque. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
idleObjects
-
idleObjectIterator
-
-
Constructor Details
-
EvictionIterator
EvictionIterator(Deque<PooledObject<T>> idleObjects) Create an EvictionIterator for the provided idle instance deque.- Parameters:
idleObjects- underlying deque
-
-
Method Details
-
getIdleObjects
Returns 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>>
-