All Implemented Interfaces:
extends Exception> IterationWrapper<E,X>
An Iteration that holds on to a lock until the Iteration is closed. Upon
closing, the underlying Iteration is closed before the lock is released. This
iterator closes itself as soon as all elements have been read.
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Closed this Iteration and also closes the wrapped Iteration if it is a
Checks whether the wrapped Iteration contains more elements, closing this
Iteration when this is not the case.
Returns the next element from the wrapped Iteration.
Removes the last element that has been returned from the wrapped
Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Iteration<? extends E, X> iter)
Creates a new LockingIteration.
lock - The lock to release when the itererator is closed, must not be
iter - The underlying Iteration, must not be
Copyright © 2001-2016 Aduna. All Rights Reserved.