htsjdk.samtools.util.CloseableIterator<T>, Closeable, AutoCloseable, Iterator<T>public class AsyncIterator<T> extends Object implements htsjdk.samtools.util.CloseableIterator<T>
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_QUEUE_SIZE |
| Constructor | Description |
|---|---|
AsyncIterator(htsjdk.samtools.util.CloseableIterator<T> underlyingIterator,
int queueSize,
String threadNamePrefix) |
| Modifier and Type | Method | 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() |
forEachRemainingpublic static final int DEFAULT_QUEUE_SIZE
public void close()
close in interface AutoCloseableclose in interface Closeableclose in interface htsjdk.samtools.util.CloseableIterator<T>