All Implemented Interfaces:
AutoCloseable, CloseableIteration<E,X>, Iteration<E,X>
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
Closes 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 Iteration.
Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.common.iteration.
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 © 2015-2021 Eclipse Foundation. All Rights Reserved.