public interface EventTrackerStatus
Modifier and Type | Method and Description |
---|---|
Segment |
getSegment()
The segment for which this status is valid.
|
TrackingToken |
getTrackingToken()
The tracking token of the last event that has been seen by this Segment.
|
boolean |
isCaughtUp()
Whether the Segment of this status has caught up with the head of the event stream.
|
boolean |
isReplaying()
Indicates whether this Segment is still replaying previously processed Events.
|
Segment getSegment()
boolean isCaughtUp()
boolean isReplaying()
Note that this method will only recognize a replay if the tokens have been reset using
TrackingEventProcessor.resetTokens()
. Removing tokens directly from the underlying TokenStore
will not be
recognized as a replay.
true
if this segment is replaying historic events after a reset
, otherwise false
TrackingToken getTrackingToken()
The returned tracking token represents the position of this segment in the event stream. In case of a recent merge of segments, the token represents the lowest position of the two merged segments.
Copyright © 2010–2019. All rights reserved.