org.axonframework.eventhandling
Interface EventSequencingPolicy

All Known Implementing Classes:
FullConcurrencyPolicy, SequentialPerAggregatePolicy, SequentialPolicy

public interface EventSequencingPolicy

Interface to a policy definition for concurrent event handling.

Some implementations are provided by default:

Since:
0.3
Author:
Allard Buijze

Method Summary
 Object getSequenceIdentifierFor(Event event)
          Returns the sequence identifier for the given event.
 

Method Detail

getSequenceIdentifierFor

Object getSequenceIdentifierFor(Event event)
Returns the sequence identifier for the given event. When two events have the same identifier (as defined by their equals method), they will be executed sequentially. A null value indicates that there are no sequencing requirements for the handling of this event.

Parameters:
event - the event for which to get the sequencing identifier
Returns:
a sequence identifier for the given event


Copyright © 2011. All Rights Reserved.