Packages

package javadsl

Type Members

  1. final class EventSourcedCleanup extends AnyRef

    Java API: Tool for deleting events and/or snapshots for a persistenceId without using persistent actors.

    Java API: Tool for deleting events and/or snapshots for a persistenceId 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 is true then the creating entity with the same persistenceId 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.

    Annotations
    @ApiMayChange()

Ungrouped