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 |
|---|---|
abstract void |
close()
Frees resources occupied by this iterator (e.g.
|
boolean |
hasNext() |
abstract void |
join() |
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 abstract void close()
DBCIteratorclose in class DBCIterator<E>public abstract void join()
throws InterruptedException
InterruptedExceptionCopyright © 2018 JULIE Lab, Germany. All rights reserved.