A new, mutable, by state command handler builder
A new, mutable, by state command handler builder
A new, mutable, builder
The callback
function is called to notify the actor that the recovery process
is finished.
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
The tagger
function should give event tags, which will be used in persistence query