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