Package org.axonframework.messaging.eventhandling.processing.streaming.progress
@NullMarked
package org.axonframework.messaging.eventhandling.processing.streaming.progress
Part of the Axon Messaging module. Defines the per-segment progress-persistence seam for streaming event processing.
A
SegmentProgressStrategy is invoked
around each batch (and on claim/release) to decide which TrackingToken to persist, while a
SegmentProgressContext performs the
actual store for the segment. The default
TokenStoringProgressStrategy
stores the batch-end token; advanced strategies (such as self-checkpointing) plug in through the same seam.-
ClassDescriptionThe handle a
SegmentProgressStrategyuses to observe and persist the progress of the singleSegmentit is bound to, provided to the strategy oncreation.Decides how a singleSegment's progress is persisted as its events are processed.Creates aSegmentProgressStrategyfor a single segment, binding it to that segment'sSegmentProgressContext.DefaultSegmentProgressStrategy: persists the batch-end token (SegmentProgressContext.lastConsumedToken()) on every commit, so the storedTrackingTokenadvances to the position consumed by each batch.