Package com.opencqrs.framework.eventhandler.partitioning
package com.opencqrs.framework.eventhandler.partitioning
Contains components for dealing with partitioned event handling.
-
ClassDescriptionDefault implementation of
PartitionKeyResolver
which usesCRC32
checksums and modulo operation to derive partition numbers from event sequence identifiers.Sealed base interface for inheritedFunctionalInterface
variants encapsulating the logic to derive a sequence identifier for an event.FunctionalInterface
to be implemented, if an event's sequence identifier can only be derived from a fully upcasted and deserialized Java event object.FunctionalInterface
to be implemented, if an event's sequence identifier can be derived from a rawEvent
, that is without any upcasting or Java object deserialization.EventSequenceResolver.ForRawEvent
implementation to be used if no event sequencing is required, i.e.Interface for implementations able to derive a consistently derive a numeric partition key from an event sequence identifier.EventSequenceResolver.ForRawEvent
implementation which reduced theEvent.subject()
path and reduces it to a configurable level, i.e.EventSequenceResolver.ForRawEvent
implementation which usesEvent.subject()
as the event sequence identifier.