E - public abstract class DBCThreadedIterator<E> extends DBCIterator<E>
This iterator class employs multiple Threads for database queries. While the iterator offers access to retrieved values, additional values are concurrently retrieved from the database by another thread.
The iterator uses the Exchanger class to communicate between threads.
| Modifier and Type | Field and Description |
|---|---|
protected ConnectionClosable |
backgroundThread |
protected Exchanger<List<E>> |
listExchanger |
| Constructor and Description |
|---|
DBCThreadedIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees resources occupied by this iterator (e.g.
|
boolean |
hasNext() |
E |
next() |
void |
remove()
unsupported
|
protected void |
update() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected ConnectionClosable backgroundThread
public boolean hasNext()
public E next()
public void remove()
protected void update()
public void close()
DBCIteratorclose in class DBCIterator<E>Copyright © 2018 JULIE Lab, Germany. All rights reserved.