Transform the event in another type before giving to the journal.
Transform the event in another type before giving to the journal. Can be used to wrap events
in types Journals understand but is of a different type than Event
.
Back off strategy for persist failures.
Back off strategy for persist failures.
Specifically BackOff to prevent resume being used. Resume is not allowed as it will be unknown if the event has been persisted.
If not specified the actor will be stopped on failure.
The callback
function is called to notify the actor that the recovery process
is finished.
The callback
function is called to notify when a snapshot is complete.
Snapshot every N events
Snapshot every N events
numberOfEvents
should be greater than 0
Initiates a snapshot if the given function returns true.
Initiates a snapshot if the given function returns true. When persisting multiple events at once the snapshot is triggered after all the events have been persisted.
predicate
receives the State, Event and the sequenceNr used for the Event
Change the journal plugin id that this actor should use.
Change the snapshot store plugin id that this actor should use.
Changes the snapshot selection criteria used by this behavior.
Changes the snapshot selection criteria used by this behavior. By default the most recent snapshot is used, and the remaining state updates are recovered by replaying events from the sequence number up until which the snapshot reached.
You may configure the behavior to skip replaying snapshots completely, in which case the recovery will be performed by replaying all events -- which may take a long time.
The tagger
function should give event tags, which will be used in persistence query
(persistentBehavior: BehaviorDecorators[Command]).behavior
(persistentBehavior: BehaviorDecorators[Command]).behavior
(persistentBehavior: BehaviorDecorators[Command]).widen(matcher)
(persistentBehavior: BehaviorDecorators[Command]).widen(matcher)