public class SequentialPolicy extends Object implements SequencingPolicy<Object>
Constructor and Description |
---|
SequentialPolicy() |
Modifier and Type | Method and Description |
---|---|
Object |
getSequenceIdentifierFor(Object task)
Returns the sequence identifier for the given
event . |
public Object getSequenceIdentifierFor(@Nonnull Object task)
SequencingPolicy
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.getSequenceIdentifierFor
in interface SequencingPolicy<Object>
task
- the event for which to get the sequencing identifierCopyright © 2010–2024. All rights reserved.