public class DefaultEventSource extends AbstractEventSource
| Constructor and Description |
|---|
DefaultEventSource(MessageStore messageStore,
MessageLogReceiverEndpoint messageLog) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<ChannelPosition> |
consumeUntil(java.time.Instant until)
Consumes all events from the EventSource until the timestamp is reached.
|
getChannelName, getMessageDispatcher, getMessageLogReceiverEndpoint, isStopping, register, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsumepublic DefaultEventSource(@Nonnull
MessageStore messageStore,
@Nonnull
MessageLogReceiverEndpoint messageLog)
@Nonnull public java.util.concurrent.CompletableFuture<ChannelPosition> consumeUntil(@Nonnull java.time.Instant until)
EventSource
The registered consumers will be called zero or more times, depending on
the number of events retrieved from the EventSource.
until - the timestamp until the messages should be consumed