public static interface MessageLog.Poller
| Modifier and Type | Method and Description |
|---|---|
long |
entryId()
Returns the current entry ID of this poller.
|
boolean |
moveTo(long entryId) |
MessageLog.Poller |
moveToEnd() |
boolean |
moveToNext() |
boolean |
moveToPrevious() |
MessageLog.Poller |
moveToStart() |
int |
poll(MessageLog.Handler handler) |
long entryId()
It returns the entry ID of the message currently polled if invoked while polling a message. Otherwise it returns the entry ID of the next message to be polled.
The index is monotonically increasing but not necessarily gap free; for instance for a chronicle message log the entry ID consists of cycle and the sequence number within that cycle.
boolean moveTo(long entryId)
boolean moveToNext()
boolean moveToPrevious()
MessageLog.Poller moveToStart()
MessageLog.Poller moveToEnd()
int poll(MessageLog.Handler handler)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.