Uses of Class
org.axonframework.eventhandling.Segment
Packages that use Segment
Package
Description
Classes related to event handling and dispatching, such as
Event Listeners and the Event Bus.-
Uses of Segment in org.axonframework.eventhandling
Fields in org.axonframework.eventhandling declared as SegmentModifier and TypeFieldDescriptionstatic final SegmentSegment.ROOT_SEGMENTRepresents the Segment that matches against all input, but can be split to start processing elements in parallel.Methods in org.axonframework.eventhandling that return SegmentModifier and TypeMethodDescriptionstatic SegmentSegment.computeSegment(int segmentId, int... availableSegmentIds) Creates a Segment instance for the givensegmentIdbased on the givenavailableSegmentsIds.static Segment[]Segment.computeSegments(int... segments) Compute theSegment's from a given list of segmentId's.EventTrackerStatus.getSegment()The segment for which this status is valid.TrackerStatus.getSegment()WrappedTrackerStatus.getSegment()Segment.mergedWith(Segment other) Calculates the Segment that represents the merger of this segment with the givenothersegment.Segment[]Segment.split()Returns an array with twosegments with a corresponding mask.
The first entry contains the originalsegmentId, with the newly calculated mask.Methods in org.axonframework.eventhandling that return types with arguments of type SegmentModifier and TypeMethodDescriptionTrackingEventProcessor.processingSegments(TrackingToken token, Segment segment) Indicates whether theeventMessageidentified with giventokenshould be processed as part of the givensegment.Segment.splitBalanced(Segment segment, int numberOfTimes) Split a givenSegmentn-times in round robin fashion.Methods in org.axonframework.eventhandling with parameters of type SegmentModifier and TypeMethodDescriptionprotected booleanAbstractEventProcessor.canHandle(EventMessage<?> eventMessage, Segment segment) Indicates whether the processor can/should handle the giveneventMessagefor the givensegment.booleanEventHandlerInvoker.canHandle(EventMessage<?> eventMessage, Segment segment) Check whether or not this invoker has handlers that can handle the giveneventMessagefor a givensegment.booleanMultiEventHandlerInvoker.canHandle(EventMessage<?> eventMessage, Segment segment) booleanSimpleEventHandlerInvoker.canHandle(EventMessage<?> eventMessage, Segment segment) intvoidEventHandlerInvoker.handle(EventMessage<?> message, Segment segment) Handle the givenmessagefor the givensegment.voidMultiEventHandlerInvoker.handle(EventMessage<?> message, Segment segment) voidSimpleEventHandlerInvoker.handle(EventMessage<?> message, Segment segment) booleanSegment.isMergeableWith(Segment other) Indicates whether this segment can be merged with the givenothersegment.Segment.mergedWith(Segment other) Calculates the Segment that represents the merger of this segment with the givenothersegment.protected voidTrackingEventProcessor.processingLoop(Segment segment) Fetch and process event batches continuously for as long as the processor is not shutting down.TrackingEventProcessor.processingSegments(TrackingToken token, Segment segment) Indicates whether theeventMessageidentified with giventokenshould be processed as part of the givensegment.default voidEventHandlerInvoker.segmentReleased(Segment segment) This is a way for an event processor to communicate that a segment which was being processed is released.protected booleanSimpleEventHandlerInvoker.sequencingPolicyMatchesSegment(EventMessage<?> message, Segment segment) static TrackerStatus[]TrackerStatus.split(Segment segment, TrackingToken trackingToken) Split the givensegmentandtrackingTokenin two.Segment.splitBalanced(Segment segment, int numberOfTimes) Split a givenSegmentn-times in round robin fashion.Method parameters in org.axonframework.eventhandling with type arguments of type SegmentModifier and TypeMethodDescriptionprotected booleanTrackingEventProcessor.canHandle(EventMessage<?> eventMessage, Collection<Segment> segments) Indicates whether any of the components handling events for this Processor are able to handle the giveneventMessagefor any of the givensegments.protected voidAbstractEventProcessor.processInUnitOfWork(List<? extends EventMessage<?>> eventMessages, UnitOfWork<? extends EventMessage<?>> unitOfWork, Collection<Segment> processingSegments) Process a batch of events.Constructors in org.axonframework.eventhandling with parameters of type SegmentModifierConstructorDescriptionTrackerStatus(Segment segment, boolean caughtUp, TrackingToken trackingToken, Throwable errorState) TrackerStatus(Segment segment, TrackingToken trackingToken) -
Uses of Segment in org.axonframework.eventhandling.deadletter
Methods in org.axonframework.eventhandling.deadletter with parameters of type SegmentModifier and TypeMethodDescriptionvoidDeadLetteringEventHandlerInvoker.handle(EventMessage<?> message, Segment segment) voidDeadLetteringEventHandlerInvoker.segmentReleased(Segment segment) -
Uses of Segment in org.axonframework.eventhandling.tokenstore
Methods in org.axonframework.eventhandling.tokenstore that return types with arguments of type SegmentModifier and TypeMethodDescriptionTokenStore.fetchAvailableSegments(String processorName) Returns a List of known availablesegmentsfor a givenprocessorName.Methods in org.axonframework.eventhandling.tokenstore with parameters of type SegmentModifier and TypeMethodDescriptiondefault TrackingTokenTokenStore.fetchToken(String processorName, Segment segment) -
Uses of Segment in org.axonframework.eventhandling.tokenstore.jdbc
Methods in org.axonframework.eventhandling.tokenstore.jdbc that return types with arguments of type SegmentMethods in org.axonframework.eventhandling.tokenstore.jdbc with parameters of type SegmentModifier and TypeMethodDescriptionJdbcTokenStore.fetchToken(String processorName, Segment segment) protected TrackingTokenJdbcTokenStore.loadToken(Connection connection, ResultSet resultSet, String processorName, Segment segment) Tries loading an existing token owned by a processor with givenprocessorNameandsegment.protected voidJdbcTokenStore.validateSegment(String processorName, Segment segment) Validate asegmentby checking for the existence of a split or merge candidate segment. -
Uses of Segment in org.axonframework.eventhandling.tokenstore.jpa
Methods in org.axonframework.eventhandling.tokenstore.jpa that return types with arguments of type SegmentMethods in org.axonframework.eventhandling.tokenstore.jpa with parameters of type SegmentModifier and TypeMethodDescriptionJpaTokenStore.fetchToken(String processorName, Segment segment) protected TokenEntryJpaTokenStore.loadToken(String processorName, Segment segment, jakarta.persistence.EntityManager entityManager) Tries loading an existing token owned by a processor with givenprocessorNameandsegment. -
Uses of Segment in org.axonframework.eventhandling.tokenstore.legacyjpa
Methods in org.axonframework.eventhandling.tokenstore.legacyjpa that return types with arguments of type SegmentModifier and TypeMethodDescriptionJpaTokenStore.fetchAvailableSegments(String processorName) Deprecated.Methods in org.axonframework.eventhandling.tokenstore.legacyjpa with parameters of type SegmentModifier and TypeMethodDescriptionJpaTokenStore.fetchToken(String processorName, Segment segment) Deprecated.protected TokenEntryJpaTokenStore.loadToken(String processorName, Segment segment, javax.persistence.EntityManager entityManager) Deprecated.Tries loading an existing token owned by a processor with givenprocessorNameandsegment. -
Uses of Segment in org.axonframework.modelling.saga
Methods in org.axonframework.modelling.saga with parameters of type SegmentModifier and TypeMethodDescriptionbooleanAnnotatedSagaManager.canHandle(EventMessage<?> eventMessage, Segment segment) protected StringAbstractSagaManager.createSagaIdentifier(Segment segment) Creates a Saga identifier that will cause a Saga instance to be considered part of the givensegment.voidAbstractSagaManager.handle(EventMessage<?> event, Segment segment) protected booleanAbstractSagaManager.matchesSegment(Segment segment, String sagaId) Checks whether the givensagaIdmatches with the givensegment.