public class AsyncIterator<T> extends Object implements Iterator<T>
Modifier and Type | Field and Description |
---|---|
protected LinkedBlockingQueue<T> |
buffer |
protected Iterator<T> |
iterator |
protected T |
nextElement |
protected AtomicBoolean |
shouldWork |
protected T |
terminator |
protected org.deeplearning4j.parallelism.AsyncIterator.ReaderThread<T> |
thread |
Constructor and Description |
---|
AsyncIterator(Iterator<T> iterator) |
AsyncIterator(Iterator<T> iterator,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected LinkedBlockingQueue<T> buffer
protected org.deeplearning4j.parallelism.AsyncIterator.ReaderThread<T> thread
protected T terminator
protected T nextElement
protected AtomicBoolean shouldWork
Copyright © 2016. All Rights Reserved.