Interface PersistentStreamSequencingPolicy
public interface PersistentStreamSequencingPolicy
Interface defining the available persistent stream sequencing policies as string constants.
- Since:
- 5.2.0
- Author:
- Jakob Hatzl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAStringconstant representing the full concurrency policy.static final StringAStringconstant representing the "metadata" sequencing policy.static final StringAStringconstant representing the property sequencing policy.static final StringAStringconstant representing the "sequential per aggregate" sequencing policy.static final StringAStringconstant representing the sequential policy.
-
Field Details
-
SEQUENTIAL_PER_AGGREGATE_POLICY
AStringconstant representing the "sequential per aggregate" sequencing policy. This means all events belonging to the same aggregate are handled sequentially. The behavior of this policy resembles theSequentialPerAggregatePolicy.- See Also:
-
METADATA_SEQUENCING_POLICY
AStringconstant representing the "metadata" sequencing policy. The policy utilizes values present in the metadata of an event to define the sequence identifier.- See Also:
-
SEQUENTIAL_POLICY
AStringconstant representing the sequential policy. This means all events are handled sequentially. The behavior of this policy resembles theSequentialPolicy.- See Also:
-
FULL_CONCURRENCY_POLICY
AStringconstant representing the full concurrency policy. This means all events are spread out over the available segments, regardless of the sequence identifier. The behavior of this policy resembles theFullConcurrencyPolicy.- See Also:
-
PROPERTY_SEQUENCING_POLICY
AStringconstant representing the property sequencing policy. This policy retrieves a value from the event's payload to decide the sequence identifier of the event. The behavior of this policy resembles thePropertySequencingPolicy.- See Also:
-