public class AsyncIterator<T>
extends java.lang.Object
implements htsjdk.samtools.util.CloseableIterator<T>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_QUEUE_SIZE |
Constructor and Description |
---|
AsyncIterator(htsjdk.samtools.util.CloseableIterator<T> underlyingIterator,
int queueSize,
java.lang.String threadNamePrefix) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stops the thread and then calls synchronouslyClose() to allow implementation to do any one time clean up.
|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public static final int DEFAULT_QUEUE_SIZE
public AsyncIterator(htsjdk.samtools.util.CloseableIterator<T> underlyingIterator, int queueSize, java.lang.String threadNamePrefix)
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
public void close()
close
in interface htsjdk.samtools.util.CloseableIterator<T>
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable