com.espertech.esper.collection
Class SafeIteratorWTableImpl<E>

java.lang.Object
  extended by com.espertech.esper.collection.SafeIteratorImpl<E>
      extended by com.espertech.esper.collection.SafeIteratorWTableImpl<E>
All Implemented Interfaces:
SafeIterator<E>, java.util.Iterator<E>

public class SafeIteratorWTableImpl<E>
extends 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
SafeIteratorWTableImpl(StatementAgentInstanceLock iteratorLock, java.util.Iterator<E> underlying, TableExprEvaluatorContext tableExprEvaluatorContext)
           
 
Method Summary
 void close()
          Close the safe itertor, releasing locks.
 
Methods inherited from class com.espertech.esper.collection.SafeIteratorImpl
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeIteratorWTableImpl

public SafeIteratorWTableImpl(StatementAgentInstanceLock iteratorLock,
                              java.util.Iterator<E> underlying,
                              TableExprEvaluatorContext tableExprEvaluatorContext)
Method Detail

close

public void close()
Description copied from interface: SafeIterator
Close the safe itertor, releasing locks. This is a required call and should preferably occur in a finally block.

Specified by:
close in interface SafeIterator<E>
Overrides:
close in class SafeIteratorImpl<E>

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com