public class SafeIteratorImpl<E> extends Object implements SafeIterator<E>
Constructor and Description |
---|
SafeIteratorImpl(StatementAgentInstanceLock iteratorLock,
Iterator<E> underlying)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the safe itertor, releasing locks.
|
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SafeIteratorImpl(StatementAgentInstanceLock iteratorLock, Iterator<E> underlying)
iteratorLock
- for locking resources to safely-iterate overunderlying
- is the underlying iterator to protectpublic void close()
SafeIterator
close
in interface SafeIterator<E>