public class CommittedEventPoller extends Object implements PeekableMessageLog.PeekablePoller<Event>
| Constructor and Description |
|---|
CommittedEventPoller(PeekableMessageLog<? extends Event> eventLog) |
CommittedEventPoller(PeekableMessageLog<? extends Event> eventLog,
String id) |
| Modifier and Type | Method and Description |
|---|---|
long |
entryId() |
boolean |
moveTo(long entryId) |
PeekableMessageLog.PeekablePoller<Event> |
moveToEnd() |
boolean |
moveToNext() |
PeekableMessageLog.PeekablePoller<Event> |
moveToStart() |
int |
peekOrPoll(PeekableMessageLog.PeekPollHandler<? super Event> handler) |
int |
poll(MessageLog.Handler<? super Event> handler) |
public CommittedEventPoller(PeekableMessageLog<? extends Event> eventLog)
public CommittedEventPoller(PeekableMessageLog<? extends Event> eventLog, String id)
public long entryId()
entryId in interface MessageLog.Poller<Event>public PeekableMessageLog.PeekablePoller<Event> moveToStart()
moveToStart in interface MessageLog.Poller<Event>moveToStart in interface PeekableMessageLog.PeekablePoller<Event>public PeekableMessageLog.PeekablePoller<Event> moveToEnd()
moveToEnd in interface MessageLog.Poller<Event>moveToEnd in interface PeekableMessageLog.PeekablePoller<Event>public boolean moveToNext()
moveToNext in interface MessageLog.Poller<Event>public boolean moveTo(long entryId)
moveTo in interface MessageLog.Poller<Event>public int poll(MessageLog.Handler<? super Event> handler)
poll in interface MessageLog.Poller<Event>public int peekOrPoll(PeekableMessageLog.PeekPollHandler<? super Event> handler)
peekOrPoll in interface PeekableMessageLog.PeekablePoller<Event>Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.