Class AggregateBasedConsistencyMarker.AggregateSequencer

java.lang.Object
org.axonframework.eventsourcing.eventstore.AggregateBasedConsistencyMarker.AggregateSequencer
Enclosing class:
AggregateBasedConsistencyMarker

public final class AggregateBasedConsistencyMarker.AggregateSequencer extends Object
Helper class that tracks the sequence of events for different aggregates and manages the consistency marker for the aggregates.
  • Method Details

    • toMarker

      Creates a new AggregateBasedConsistencyMarker with the current state of aggregate sequences tracked by this sequencer.
      Returns:
      a new AggregateBasedConsistencyMarker, never null
    • incrementAndGetSequenceOf

      public long incrementAndGetSequenceOf(String aggregateIdentifier)
      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