public class TokenRangeEvents extends Object implements Iterable<EventWithToken>
EventWithTokens' Iterable that start from a given initial token and completes at the last token.| Constructor and Description |
|---|
TokenRangeEvents(Supplier<EventChannel> eventChannel,
long firstToken,
long lastToken)
Constructs an instance based on the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<EventWithToken> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TokenRangeEvents(Supplier<EventChannel> eventChannel, long firstToken, long lastToken)
eventChannel - the channel used to open a stream to Axon Server for reading eventsfirstToken - the first token to includelastToken - the last token to includepublic Iterator<EventWithToken> iterator()
iterator in interface Iterable<EventWithToken>Copyright © 2020–2023 AxonIQ BV. All rights reserved.