package javadsl
Type Members
- final class DurableStateCleanup extends AnyRef
Java API: Tool for deleting durable state for a given list of
persistenceIds
without usingDurableStateBehavior
actors.Java API: Tool for deleting durable state for a given list of
persistenceIds
without usingDurableStateBehavior
actors. It's important that the actors with corresponding persistenceId are not running at the same time as using the tool.If
resetRevisionNumber
istrue
then the creating entity with the samepersistenceId
will start from 0. Otherwise it will continue from the latest highest used revision number.WARNING: reusing the same
persistenceId
after resetting the revision number should be avoided, since it might be confusing to reuse the same revision numbers for new state changes.When a list of
persistenceIds
are given they are deleted sequentially in the order of the list. It's possible to parallelize the deletes by running several cleanup operations at the same time operating on different sets ofpersistenceIds
.- Annotations
- @ApiMayChange()
- final class EventSourcedCleanup extends AnyRef
Java API: Tool for deleting events and/or snapshots for a given list of
persistenceIds
without using persistent actors.Java API: Tool for deleting events and/or snapshots for a given list of
persistenceIds
without using persistent actors.When running an operation with
EventSourcedCleanup
that 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
resetSequenceNumber
istrue
then the creating entity with the samepersistenceId
will start from 0. Otherwise it will continue from the latest highest used sequence number.WARNING: reusing the same
persistenceId
after 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
persistenceIds
are given they are deleted sequentially in the order of the list. It's possible to parallelize the deletes by running several cleanup operations at the same time operating on different sets ofpersistenceIds
.- Annotations
- @ApiMayChange()