public class DefaultEventSource extends AbstractEventSource
| Constructor and Description |
|---|
DefaultEventSource(MessageStore messageStore,
MessageLogReceiverEndpoint messageLog) |
| Modifier and Type | Method and Description |
|---|---|
ChannelPosition |
consumeUntil(ChannelPosition startFrom,
java.time.Instant until)
Consumes all events from the EventSource, beginning with
startFrom, until
the stopCondition is met. |
getChannelName, getMessageDispatcher, getMessageLogReceiverEndpoint, isStopping, register, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsume, consume, consumeUntilpublic DefaultEventSource(@Nonnull
MessageStore messageStore,
@Nonnull
MessageLogReceiverEndpoint messageLog)
@Nonnull public ChannelPosition consumeUntil(@Nonnull ChannelPosition startFrom, @Nonnull java.time.Instant until)
EventSourcestartFrom, until
the stopCondition is met.
The registered consumers will be called zero or more times, depending on
the number of events retrieved from the EventSource.
consumeUntil in interface EventSourceconsumeUntil in class AbstractEventSourcestartFrom - the read position returned from earlier executionsuntil - the arrival timestamp until the messages should be consumed