Class IterAbortable<T>
- java.lang.Object
-
- org.apache.jena.atlas.iterator.IteratorWrapper<T>
-
- org.apache.jena.sparql.engine.iterator.IterAbortable<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>,org.apache.jena.atlas.lib.Closeable,Abortable
public class IterAbortable<T> extends org.apache.jena.atlas.iterator.IteratorWrapper<T> implements Abortable
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 Constructor Description IterAbortable(java.util.Iterator<T> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()Can call asynchronously at anytimebooleanhasNext()Tnext()
-
-
-
Constructor Detail
-
IterAbortable
public IterAbortable(java.util.Iterator<T> iterator)
-
-