Class AggregateBasedConsistencyMarker.AggregateSequencer
java.lang.Object
org.axonframework.eventsourcing.eventstore.AggregateBasedConsistencyMarker.AggregateSequencer
- Enclosing class:
AggregateBasedConsistencyMarker
Helper class that tracks the sequence of events for different aggregates and manages the consistency marker for
the aggregates.
-
Method Summary
Modifier and TypeMethodDescriptionlongincrementAndGetSequenceOf(String aggregateIdentifier) Get and increment the sequence for the given aggregate identifier.toMarker()Creates a newAggregateBasedConsistencyMarkerwith the current state of aggregate sequences tracked by this sequencer.
-
Method Details
-
toMarker
Creates a newAggregateBasedConsistencyMarkerwith the current state of aggregate sequences tracked by this sequencer.- Returns:
- a new
AggregateBasedConsistencyMarker, nevernull
-
incrementAndGetSequenceOf
Get and increment the sequence for the given aggregate identifier.- Parameters:
aggregateIdentifier- The identifier of the aggregate to get and increment the sequence for- Returns:
- The sequence number for the aggregate
-