|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgr.uoa.di.madgik.grs.reader.ForwardReaderIterator<T>
T - The type of Records as defined in the respective ForwardReaderpublic class ForwardReaderIterator<T extends Record>
An iterator implementing class that can be used to iterate over the Records accessible through a
ForwardReader instance
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean hasNext()
If the status of the reader indicates that there may be more Records available but have not yet reached the
current reader through the respective mirroring procedure, then the ForwardReader.waitAvailable(long, java.util.concurrent.TimeUnit)
is used with the timeout values defined by ForwardReader.getIteratorTimeout() and ForwardReader.getIteratorTimeUnit()
hasNext in interface java.util.Iterator<T extends Record>Iterator.hasNext()public T next()
the ForwardReader.get(long, java.util.concurrent.TimeUnit) method is used to retrieve the next available
Record. The timeout values used are the ones defined by ForwardReader.getIteratorTimeout() and
ForwardReader.getIteratorTimeUnit(). in case there is some error during the Record retrieval or
the timeout expired, null is returned
next in interface java.util.Iterator<T extends Record>Iterator.next()public void remove()
Operation is not supported. An IllegalStateException is thrown upon invocation
remove in interface java.util.Iterator<T extends Record>Iterator.remove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||