Class SequentialPerAggregatePolicy
java.lang.Object
org.axonframework.eventhandling.async.SequentialPerAggregatePolicy
- All Implemented Interfaces:
SequencingPolicy<EventMessage>
Concurrency policy that requires sequential processing of events raised by the same aggregate. Events from different
aggregates may be processed in different threads, as will events that do not extend the DomainEvent type.
- Since:
- 0.3
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the sequence identifier for the givenevent.static SequentialPerAggregatePolicyinstance()Return a singleton instance of the this Sequencing Policy.
-
Constructor Details
-
SequentialPerAggregatePolicy
public SequentialPerAggregatePolicy()
-
-
Method Details
-
instance
Return a singleton instance of the this Sequencing Policy.- Returns:
- a singleton SequentialPerAggregatePolicy instance
-
getSequenceIdentifierFor
Description copied from interface:SequencingPolicyReturns the sequence identifier for the givenevent. When two events have the same identifier (as defined by their equals method), they will be executed sequentially. Anullvalue indicates that there are no sequencing requirements for the handling of this event.- Specified by:
getSequenceIdentifierForin interfaceSequencingPolicy<EventMessage>- Parameters:
event- the event for which to get the sequencing identifier- Returns:
- a sequence identifier for the given event
-