package scaladsl
Type Members
- final class EventSourcedCleanup extends AnyRef
Scala API: Tool for deleting or setting expiration (time to live) of events and/or snapshots for a given list of
persistenceIdswithout using persistent actors.Scala API: Tool for deleting or setting expiration (time to live) of events and/or snapshots for a given list of
persistenceIdswithout using persistent actors.When running an operation with
EventSourcedCleanupthat deletes all events for a persistence id, the actor with that persistence id must not be running! If the actor is restarted it would in that case be recovered to the wrong state since the stored events have been deleted. Delete events before snapshot can still be used while the actor is running.If
resetSequenceNumberistruethen an entity created with the samepersistenceIdwill start from 0. Otherwise it will continue from the latest highest used sequence number.WARNING: reusing the same
persistenceIdafter resetting the sequence number should be avoided, since it might be confusing to reuse the same sequence number for new events.When a list of
persistenceIdsare given, they are deleted sequentially in the same order as the list. It's possible to parallelize the deletes by running several cleanup operations at the same time, each operating on different sets ofpersistenceIds.- Annotations
- @ApiMayChange()