private static class DruidConnectionImpl.BlockingQueueEnumerator<E> extends Object implements Enumerator<E>
Enumerator that gets its rows from a BlockingQueue.
There are other fields to signal errors and end-of-data.| Modifier and Type | Field and Description |
|---|---|
(package private) AtomicBoolean |
done |
(package private) E |
next |
(package private) BlockingQueue<E> |
queue |
(package private) Holder<Throwable> |
throwableHolder |
| Modifier | Constructor and Description |
|---|---|
private |
BlockingQueueEnumerator() |
final BlockingQueue<E> queue
final AtomicBoolean done
E next
public E current()
current in interface Enumerator<E>public boolean moveNext()
moveNext in interface Enumerator<E>public void reset()
reset in interface Enumerator<E>public void close()
close in interface AutoCloseableclose in interface Enumerator<E>Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.