org.axonframework.eventhandling.async
Interface SequencingPolicy<T>

Type Parameters:
T - The type of object representing the processing instruction for the event.
All Known Implementing Classes:
FullConcurrencyPolicy, SequentialPerAggregatePolicy, SequentialPolicy

public interface SequencingPolicy<T>

Interface to a policy definition for concurrent processing, for example event handling.

Some implementations are provided by default:

Since:
0.3
Author:
Allard Buijze

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

Method Detail

getSequenceIdentifierFor

Object getSequenceIdentifierFor(T 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 © 2010-2016. All Rights Reserved.