|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.collection.SafeIteratorImpl<E>
public class SafeIteratorImpl<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 | |
---|---|
SafeIteratorImpl(StatementAgentInstanceLock iteratorLock,
java.util.Iterator<E> underlying)
Ctor. |
Method Summary | |
---|---|
void |
close()
Close the safe itertor, releasing locks. |
boolean |
hasNext()
|
E |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SafeIteratorImpl(StatementAgentInstanceLock iteratorLock, java.util.Iterator<E> underlying)
iteratorLock
- for locking resources to safely-iterate overunderlying
- is the underlying iterator to protectMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public E next()
next
in interface java.util.Iterator<E>
public void close()
SafeIterator
close
in interface SafeIterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |