public interface JournalReader<E> extends Iterator<Indexed<E>>, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Indexed<E> |
getCurrentEntry()
Returns the last read entry.
|
long |
getCurrentIndex()
Returns the current reader index.
|
long |
getNextIndex()
Returns the next reader index.
|
boolean |
hasNext()
Returns whether the reader has a next entry to read.
|
Indexed<E> |
next()
Returns the next entry in the reader.
|
void |
reset()
Resets the reader to the start.
|
void |
reset(long index)
Resets the reader to the given index.
|
forEachRemaining, removelong getCurrentIndex()
Indexed<E> getCurrentEntry()
long getNextIndex()
boolean hasNext()
void reset()
void reset(long index)
index - The index to which to reset the reader.void close()
close in interface AutoCloseableCopyright © 2013–2018. All rights reserved.