Class SafeIteratorImpl<E>
java.lang.Object
com.espertech.esper.runtime.internal.kernel.statement.SafeIteratorImpl<E>
- All Implemented Interfaces:
com.espertech.esper.common.client.util.SafeIterator<E>
,Iterator<E>
- Direct Known Subclasses:
SafeIteratorWTableImpl
public class SafeIteratorImpl<E>
extends Object
implements com.espertech.esper.common.client.util.SafeIterator<E>
Implements the safe iterator. The class is passed a lock that is locked already, to release
when the close method closes the iterator.
-
Constructor Summary
ConstructorDescriptionSafeIteratorImpl
(com.espertech.esper.common.internal.context.util.StatementAgentInstanceLock iteratorLock, Iterator<E> underlying) Ctor. -
Method Summary
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 Details
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
close
public void close()- Specified by:
close
in interfacecom.espertech.esper.common.client.util.SafeIterator<E>
-
remove
public void remove()
-