Uses of Interface
org.axonframework.messaging.eventhandling.processing.streaming.token.TrackingToken
Packages that use TrackingToken
Package
Description
Definitions and implementations of the Event store, the mechanism that can load event streams and append events to
them.
JPA Implementation of the EventStore.
-
Uses of TrackingToken in org.axonframework.axonserver.connector.event
Methods in org.axonframework.axonserver.connector.event that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionAggregateBasedAxonServerEventStorageEngine.firstToken()AxonServerEventStorageEngine.firstToken()AggregateBasedAxonServerEventStorageEngine.latestToken()AxonServerEventStorageEngine.latestToken() -
Uses of TrackingToken in org.axonframework.eventsourcing.eventstore
Methods in org.axonframework.eventsourcing.eventstore that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionEventStorageEngine.firstToken()Creates aTrackingTokenthat is at the first position of an event stream.InterceptingEventStore.firstToken(ProcessingContext context) StorageEngineBackedEventStore.firstToken(ProcessingContext context) EventStorageEngine.latestToken()Creates aTrackingTokenthat is at the latest position of an event stream.InterceptingEventStore.latestToken(ProcessingContext context) StorageEngineBackedEventStore.latestToken(ProcessingContext context) InterceptingEventStore.tokenAt(Instant at, ProcessingContext context) StorageEngineBackedEventStore.tokenAt(Instant at, ProcessingContext context) -
Uses of TrackingToken in org.axonframework.eventsourcing.eventstore.inmemory
Methods in org.axonframework.eventsourcing.eventstore.inmemory that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionInMemoryEventStorageEngine.firstToken()InMemoryEventStorageEngine.latestToken() -
Uses of TrackingToken in org.axonframework.eventsourcing.eventstore.jpa
Methods in org.axonframework.eventsourcing.eventstore.jpa that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionAggregateBasedJpaEventStorageEngine.firstToken()AggregateBasedJpaEventStorageEngine.latestToken() -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming
Methods in org.axonframework.messaging.eventhandling.processing.streaming with parameters of type TrackingTokenModifier and TypeMethodDescriptiondefault CompletableFuture<Void> StreamingEventProcessor.resetTokens(TrackingToken startPosition) Resets tokens to the givenstartPosition.<R> CompletableFuture<Void> StreamingEventProcessor.resetTokens(TrackingToken startPosition, R resetContext) Resets tokens to the givenstartPosition.Method parameters in org.axonframework.messaging.eventhandling.processing.streaming with type arguments of type TrackingTokenModifier and TypeMethodDescriptionStreamingEventProcessor.resetTokens(Function<TrackingTokenSource, CompletableFuture<TrackingToken>> initialTrackingTokenSupplier) Reset tokens to the position as return by the giveninitialTrackingTokenSupplier.<R> CompletableFuture<Void> StreamingEventProcessor.resetTokens(Function<TrackingTokenSource, CompletableFuture<TrackingToken>> initialTrackingTokenSupplier, R resetContext) Reset tokens to the position as return by the giveninitialTrackingTokenSupplier. -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.pooled
Methods in org.axonframework.messaging.eventhandling.processing.streaming.pooled that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionPooledStreamingEventProcessorConfiguration.initialToken()Returns the function used to generate initialTrackingTokens.Methods in org.axonframework.messaging.eventhandling.processing.streaming.pooled with parameters of type TrackingTokenModifier and TypeMethodDescriptionPooledStreamingEventProcessor.resetTokens(TrackingToken startPosition) <R> CompletableFuture<Void> PooledStreamingEventProcessor.resetTokens(TrackingToken startPosition, R resetContext) Method parameters in org.axonframework.messaging.eventhandling.processing.streaming.pooled with type arguments of type TrackingTokenModifier and TypeMethodDescriptionPooledStreamingEventProcessorConfiguration.initialToken(Function<TrackingTokenSource, CompletableFuture<TrackingToken>> initialToken) Specifies theFunctionused to generate the initialTrackingTokens.PooledStreamingEventProcessor.resetTokens(Function<TrackingTokenSource, CompletableFuture<TrackingToken>> initialTrackingTokenSupplier) <R> CompletableFuture<Void> PooledStreamingEventProcessor.resetTokens(Function<TrackingTokenSource, CompletableFuture<TrackingToken>> initialTrackingTokenSupplier, R resetContext) -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.segmenting
Methods in org.axonframework.messaging.eventhandling.processing.streaming.segmenting that return TrackingTokenModifier and TypeMethodDescriptionTrackerStatus.getInternalTrackingToken()Return theTrackingTokenthisEventTrackerStatusportrays the status of.EventTrackerStatus.getTrackingToken()The tracking token of the last event that has been seen by this Segment.TrackerStatus.getTrackingToken()WrappedTrackerStatus.getTrackingToken()Methods in org.axonframework.messaging.eventhandling.processing.streaming.segmenting with parameters of type TrackingTokenModifier and TypeMethodDescriptionTrackerStatus.advancedTo(TrackingToken trackingToken) static TrackerStatus[]TrackerStatus.split(Segment segment, TrackingToken trackingToken) Split the givensegmentandtrackingTokenin two.Constructors in org.axonframework.messaging.eventhandling.processing.streaming.segmenting with parameters of type TrackingTokenModifierConstructorDescriptionTrackerStatus(Segment segment, boolean caughtUp, TrackingToken trackingToken, Throwable errorState) TrackerStatus(Segment segment, TrackingToken trackingToken) -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.token
Subinterfaces of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.tokenModifier and TypeInterfaceDescriptioninterfaceInterface marking a token that wraps another token.Classes in org.axonframework.messaging.eventhandling.processing.streaming.token that implement TrackingTokenModifier and TypeClassDescriptionclassImplementation of aTrackingTokenthat uses the global insertion sequence number of the event to determine tracking order and additionally stores a set of possible gaps that have been detected while tracking the event store.classTracking token based on the global sequence number of an event.classSpecial Wrapped Token implementation that keeps track of two separate tokens, of which the streams have been merged into a single one.classToken keeping track of the position before a reset was triggered.Fields in org.axonframework.messaging.eventhandling.processing.streaming.token declared as TrackingTokenModifier and TypeFieldDescriptionstatic final TrackingTokenTrackingToken.FIRSTA specialTrackingTokenthat indicates the very beginning of an event stream.static final TrackingTokenTrackingToken.LATESTA specialTrackingTokenthat represents the latest (tail) position in an event stream.Fields in org.axonframework.messaging.eventhandling.processing.streaming.token with type parameters of type TrackingTokenModifier and TypeFieldDescriptionstatic final Context.ResourceKey<TrackingToken> TrackingToken.RESOURCE_KEYMethods in org.axonframework.messaging.eventhandling.processing.streaming.token with type parameters of type TrackingTokenModifier and TypeMethodDescription<R extends TrackingToken>
Optional<R> <R extends TrackingToken>
Optional<R> <R extends TrackingToken>
Optional<R> Retrieve a token of giventokenTypeif it is wrapped by this token.static <R extends TrackingToken>
Optional<R> WrappedToken.unwrap(TrackingToken token, Class<R> tokenType) Unwrap the giventokenuntil a token of giventokenTypeis exposed.Methods in org.axonframework.messaging.eventhandling.processing.streaming.token that return TrackingTokenModifier and TypeMethodDescriptionstatic TrackingTokenWrappedToken.advance(TrackingToken base, TrackingToken target) MergedTrackingToken.advancedTo(TrackingToken newToken) ReplayToken.advancedTo(TrackingToken newToken) WrappedToken.advancedTo(TrackingToken newToken) Advance this token to the givennewToken.static TrackingTokenReplayToken.createReplayToken(TrackingToken tokenAtReset) Creates a new TrackingToken that represents the tail of the stream.static TrackingTokenReplayToken.createReplayToken(TrackingToken tokenAtReset, TrackingToken startPosition) Creates a new TrackingToken that represents the givenstartPositionof a stream.static TrackingTokenReplayToken.createReplayToken(TrackingToken tokenAtReset, TrackingToken startPosition, Object resetContext) Creates a new TrackingToken that represents the givenstartPositionof a stream.ReplayToken.getCurrentToken()Gets the current token.ReplayToken.getTokenAtReset()Gets the token representing the position at which the reset was triggered.GlobalSequenceTrackingToken.lowerBound(TrackingToken other) MergedTrackingToken.lowerBound()MergedTrackingToken.lowerBound(TrackingToken other) ReplayToken.lowerBound()ReplayToken.lowerBound(TrackingToken other) TrackingToken.lowerBound(TrackingToken other) Returns a token that represents the lower bound between this and theothertoken.WrappedToken.lowerBound()Returns the token representing the current position in the stream.MergedTrackingToken.lowerSegmentToken()Returns the token indicating the progress of the lower half (the half with the lower segmentId) of the merged segment represented by this tokenstatic TrackingTokenMergedTrackingToken.merged(TrackingToken lowerSegmentToken, TrackingToken upperSegmentToken) Create a merged token using the givenlowerSegmentTokenandupperSegmentToken.static TrackingTokenWrappedToken.unwrapLowerBound(TrackingToken token) Extracts a raw token describing the current processing position of the giventoken.static TrackingTokenWrappedToken.unwrapUpperBound(TrackingToken token) Extracts a raw token describing the current processing position of the giventoken.GapAwareTrackingToken.upperBound(TrackingToken otherToken) GlobalSequenceTrackingToken.upperBound(TrackingToken other) MergedTrackingToken.upperBound()MergedTrackingToken.upperBound(TrackingToken other) ReplayToken.upperBound()ReplayToken.upperBound(TrackingToken other) TrackingToken.upperBound(TrackingToken other) Returns the token that represents the furthest possible position in a stream that either this token or the givenotherrepresents.WrappedToken.upperBound()Returns the token representing the furthest position in the stream described by this token.MergedTrackingToken.upperSegmentToken()Returns the token indicating the progress of the upper half (the half with the higher segmentId) of the merged segment represented by this tokenMethods in org.axonframework.messaging.eventhandling.processing.streaming.token that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionstatic Optional<TrackingToken> TrackingToken.fromContext(Context context) Returns anOptionalof {TrackingToken}, returning the resource keyed under theRESOURCE_KEYin the givencontext.Methods in org.axonframework.messaging.eventhandling.processing.streaming.token with parameters of type TrackingTokenModifier and TypeMethodDescriptionstatic ContextTrackingToken.addToContext(Context context, TrackingToken token) static TrackingTokenWrappedToken.advance(TrackingToken base, TrackingToken target) MergedTrackingToken.advancedTo(TrackingToken newToken) ReplayToken.advancedTo(TrackingToken newToken) WrappedToken.advancedTo(TrackingToken newToken) Advance this token to the givennewToken.booleanGapAwareTrackingToken.covers(TrackingToken other) booleanGlobalSequenceTrackingToken.covers(TrackingToken other) booleanMergedTrackingToken.covers(TrackingToken other) booleanReplayToken.covers(TrackingToken other) booleanTrackingToken.covers(TrackingToken other) Indicates whether this token covers theothertoken completely.static TrackingTokenReplayToken.createReplayToken(TrackingToken tokenAtReset) Creates a new TrackingToken that represents the tail of the stream.static TrackingTokenReplayToken.createReplayToken(TrackingToken tokenAtReset, TrackingToken startPosition) Creates a new TrackingToken that represents the givenstartPositionof a stream.static TrackingTokenReplayToken.createReplayToken(TrackingToken tokenAtReset, TrackingToken startPosition, Object resetContext) Creates a new TrackingToken that represents the givenstartPositionof a stream.static OptionalLongReplayToken.getTokenAtReset(TrackingToken trackingToken) Return the relative position at which a reset was triggered for this Segment.static booleanMergedTrackingToken.isMergeInProgress(TrackingToken trackingToken) Indicates whether the giventrackingTokenrepresents a token that is part of a merge.static booleanReplayToken.isReplay(TrackingToken trackingToken) Indicates whether the giventrackingTokenrepresents a position that is part of a replay.GapAwareTrackingToken.lowerBound(TrackingToken other) GlobalSequenceTrackingToken.lowerBound(TrackingToken other) MergedTrackingToken.lowerBound(TrackingToken other) ReplayToken.lowerBound(TrackingToken other) TrackingToken.lowerBound(TrackingToken other) Returns a token that represents the lower bound between this and theothertoken.static TrackingTokenMergedTrackingToken.merged(TrackingToken lowerSegmentToken, TrackingToken upperSegmentToken) Create a merged token using the givenlowerSegmentTokenandupperSegmentToken.static OptionalLongMergedTrackingToken.mergePosition(TrackingToken trackingToken) Return the estimated relative token position this Segment will have after a merge operation is complete.static <T> Optional<T> ReplayToken.replayContext(TrackingToken trackingToken, Class<T> contextClass) Extracts the context from amessageof the matchingcontextClass.booleanGapAwareTrackingToken.samePositionAs(TrackingToken other) Indicates whetherthistoken is at the exact same spot in the event stream as theothertoken.booleanGlobalSequenceTrackingToken.samePositionAs(TrackingToken other) booleanMergedTrackingToken.samePositionAs(TrackingToken other) booleanReplayToken.samePositionAs(TrackingToken other) default booleanTrackingToken.samePositionAs(TrackingToken other) Indicates whetherthistoken is at the exact same spot in the event stream as theothertoken.static <R extends TrackingToken>
Optional<R> WrappedToken.unwrap(TrackingToken token, Class<R> tokenType) Unwrap the giventokenuntil a token of giventokenTypeis exposed.static TrackingTokenWrappedToken.unwrapLowerBound(TrackingToken token) Extracts a raw token describing the current processing position of the giventoken.static TrackingTokenWrappedToken.unwrapUpperBound(TrackingToken token) Extracts a raw token describing the current processing position of the giventoken.GapAwareTrackingToken.upperBound(TrackingToken otherToken) GlobalSequenceTrackingToken.upperBound(TrackingToken other) MergedTrackingToken.upperBound(TrackingToken other) ReplayToken.upperBound(TrackingToken other) TrackingToken.upperBound(TrackingToken other) Returns the token that represents the furthest possible position in a stream that either this token or the givenotherrepresents.Constructors in org.axonframework.messaging.eventhandling.processing.streaming.token with parameters of type TrackingTokenModifierConstructorDescriptionMergedTrackingToken(TrackingToken lowerSegmentToken, TrackingToken upperSegmentToken) Initialize a Merged Token, with thelowerSegmentTokenrepresenting the progress of the segment with the lower segmentId, andupperSegmentTokenrepresenting the progress of the segment with the higher segmentId.protectedMergedTrackingToken(TrackingToken lowerSegmentToken, TrackingToken upperSegmentToken, boolean lowerSegmentAdvanced, boolean upperSegmentAdvanced) Initialize a Merged Token, with thelowerSegmentTokenrepresenting the progress of the segment with the lower segmentId, andupperSegmentTokenrepresenting the progress of the segment with the higher segmentId, additionally indicating if either of these segments were advanced by the latest call toMergedTrackingToken.advancedTo(TrackingToken) -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.token.annotation
Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.annotation that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionTrackingTokenParameterResolverFactory.createInstance(Executable executable, Parameter[] parameters, int parameterIndex) -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.token.store
Classes in org.axonframework.messaging.eventhandling.processing.streaming.token.store that implement TrackingTokenModifier and TypeClassDescriptionclassA special implementation of a Token that is used to store configuration specific to the underlying storage of eachTokenStoreinstance.Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store that return TrackingTokenModifier and TypeMethodDescriptionConfigToken.lowerBound(TrackingToken other) ConfigToken.upperBound(TrackingToken other) Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionTokenStore.fetchToken(String processorName, int segmentId, ProcessingContext context) default CompletableFuture<TrackingToken> TokenStore.fetchToken(String processorName, Segment segment, ProcessingContext context) Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store with parameters of type TrackingTokenModifier and TypeMethodDescriptionbooleanConfigToken.covers(TrackingToken other) TokenStore.initializeSegment(TrackingToken token, String processorName, Segment segment, ProcessingContext context) Initializes a segment with givensegmentfor the processor with givenprocessorNameto contain the giventoken.TokenStore.initializeTokenSegments(String processorName, int segmentCount, TrackingToken initialToken, ProcessingContext context) Initializes a given number of segments for the givenprocessorNameto track its tokens.ConfigToken.lowerBound(TrackingToken other) booleanConfigToken.samePositionAs(TrackingToken other) TokenStore.storeToken(TrackingToken token, String processorName, int segmentId, ProcessingContext context) Stores the giventokenin the store.ConfigToken.upperBound(TrackingToken other) -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.token.store.inmemory
Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store.inmemory that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionInMemoryTokenStore.fetchToken(String processorName, int segmentId, ProcessingContext context) Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store.inmemory with parameters of type TrackingTokenModifier and TypeMethodDescriptionInMemoryTokenStore.initializeSegment(TrackingToken token, String processorName, Segment segment, ProcessingContext context) InMemoryTokenStore.initializeTokenSegments(String processorName, int segmentCount, TrackingToken initialToken, ProcessingContext context) InMemoryTokenStore.storeToken(TrackingToken token, String processorName, int segmentId, ProcessingContext context) -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jdbc
Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jdbc that return TrackingTokenModifier and TypeMethodDescriptionprotected TrackingTokenJdbcTokenStore.claimToken(Connection connection, JdbcTokenEntry entry) Tries to claim the given tokenentry.Returns the token, deserializing it with givenconverter.protected TrackingTokenJdbcTokenStore.insertTokenEntry(Connection connection, TrackingToken token, String processorName, Segment segment) Inserts a new token entry via the given updatableresultSet.protected TrackingTokenJdbcTokenStore.loadToken(Connection connection, ResultSet resultSet, String processorName, int segment) Tries loading an existing token owned by a processor with givenprocessorNameandsegment.protected TrackingTokenJdbcTokenStore.loadToken(Connection connection, ResultSet resultSet, String processorName, Segment segment) Tries to load an existing token owned by a processor with givenprocessorNameandsegment.Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jdbc that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionJdbcTokenStore.fetchToken(String processorName, int segment, ProcessingContext context) JdbcTokenStore.fetchToken(String processorName, Segment segment, ProcessingContext context) Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jdbc with parameters of type TrackingTokenModifier and TypeMethodDescriptionJdbcTokenStore.initializeSegment(TrackingToken token, String processorName, Segment segment, ProcessingContext context) JdbcTokenStore.initializeTokenSegments(String processorName, int segmentCount, TrackingToken initialToken, ProcessingContext context) protected TrackingTokenJdbcTokenStore.insertTokenEntry(Connection connection, TrackingToken token, String processorName, Segment segment) Inserts a new token entry via the given updatableresultSet.JdbcTokenStore.storeToken(TrackingToken token, String processorName, int segment, ProcessingContext context) protected PreparedStatementJdbcTokenStore.storeUpdate(Connection connection, TrackingToken token, String processorName, int segment) Returns aPreparedStatementwhich update the giventokenfor the givenprocessorNameandsegmentcombination.final voidJdbcTokenEntry.updateToken(TrackingToken token, Converter converter) Update the token data to the giventoken, using givenconverterto serialize it to bytes[].protected voidJdbcTokenStore.updateToken(Connection connection, ResultSet resultSet, TrackingToken token, String processorName, int segment) If the givenresultSethas an entry, attempts to replace the token in the entry with the giventokenand claim ownership.Constructors in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jdbc with parameters of type TrackingTokenModifierConstructorDescriptionJdbcTokenEntry(TrackingToken token, Converter converter) Initializes a new token entry for giventoken,processandsegment. -
Uses of TrackingToken in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jpa
Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jpa that return TrackingTokenModifier and TypeMethodDescriptionReturns the token, deserializing it with givenserializerMethods in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jpa that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionJpaTokenStore.fetchToken(String processorName, int segment, ProcessingContext context) JpaTokenStore.fetchToken(String processorName, Segment segment, ProcessingContext context) Methods in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jpa with parameters of type TrackingTokenModifier and TypeMethodDescriptionJpaTokenStore.initializeSegment(TrackingToken token, String processorName, Segment segment, ProcessingContext context) JpaTokenStore.initializeTokenSegments(String processorName, int segmentCount, TrackingToken initialToken, ProcessingContext context) JpaTokenStore.storeToken(TrackingToken token, String processorName, int segment, ProcessingContext context) voidTokenEntry.updateToken(TrackingToken token, Converter converter) Updates a token, using the provided token and serializer to update the serialized token and token type.Constructors in org.axonframework.messaging.eventhandling.processing.streaming.token.store.jpa with parameters of type TrackingTokenModifierConstructorDescriptionTokenEntry(String processorName, Segment segment, TrackingToken token, Converter converter) Initializes a new token entry for giventoken,processorNameandsegment. -
Uses of TrackingToken in org.axonframework.messaging.eventstreaming
Methods in org.axonframework.messaging.eventstreaming that return TrackingTokenModifier and TypeMethodDescriptionStreamingCondition.position()The position as aTrackingTokento start streaming from.Methods in org.axonframework.messaging.eventstreaming that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionTrackingTokenSource.firstToken(ProcessingContext context) Creates aTrackingTokenrepresenting the first position of theevent stream.TrackingTokenSource.latestToken(ProcessingContext context) Creates aTrackingTokenrepresenting the latest position, thus pointing at the next event of theevent stream.TrackingTokenSource.tokenAt(Instant at, ProcessingContext context) Methods in org.axonframework.messaging.eventstreaming with parameters of type TrackingTokenModifier and TypeMethodDescriptionstatic StreamingConditionStreamingCondition.conditionFor(TrackingToken position, EventCriteria criteria) Constructs a simpleStreamingConditionthat starts streaming from the givenposition, only returning events matching the givencriteria.static StreamingConditionStreamingCondition.startingFrom(TrackingToken position) Constructs a simpleStreamingConditionthat starts streaming from the givenposition. -
Uses of TrackingToken in org.axonframework.test.fixture
Methods in org.axonframework.test.fixture that return types with arguments of type TrackingTokenModifier and TypeMethodDescriptionRecordingEventStore.firstToken(ProcessingContext context) RecordingEventStore.latestToken(ProcessingContext context) RecordingEventStore.tokenAt(Instant at, ProcessingContext context)