java.lang.Object
org.apache.jena.atlas.iterator.IteratorWrapper<T>
org.apache.jena.sparql.engine.iterator.IterAbortable<T>
- All Implemented Interfaces:
Iterator<T>
,org.apache.jena.atlas.iterator.IteratorCloseable<T>
,org.apache.jena.atlas.lib.Closeable
,Abortable
public class IterAbortable<T>
extends org.apache.jena.atlas.iterator.IteratorWrapper<T>
implements Abortable, org.apache.jena.atlas.iterator.IteratorCloseable<T>
Plain iterator version to add "abort" functionality.
Iterator that adds an abort operation which can be called at any time,
including from another thread, and causes the iterator to throw an exception
when next touched (hasNext, next).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.jena.atlas.iterator.IteratorWrapper
close, forEachRemaining
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.atlas.lib.Closeable
close
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
IterAbortable
-
-
Method Details
-
abort
public void abort()Can call asynchronously at any time -
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-