Package akka.persistence.typed.javadsl
Class SnapshotCountRetentionCriteria
- java.lang.Object
-
- akka.persistence.typed.javadsl.RetentionCriteria
-
- akka.persistence.typed.javadsl.SnapshotCountRetentionCriteria
-
public abstract class SnapshotCountRetentionCriteria extends RetentionCriteria
-
-
Constructor Summary
Constructors Constructor Description SnapshotCountRetentionCriteria()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SnapshotCountRetentionCriteria
withDeleteEventsOnSnapshot()
Delete events after saving snapshot viaRetentionCriteria.snapshotEvery
.-
Methods inherited from class akka.persistence.typed.javadsl.RetentionCriteria
asScala, disabled, snapshotEvery, snapshotEvery
-
-
-
-
Method Detail
-
withDeleteEventsOnSnapshot
public abstract SnapshotCountRetentionCriteria withDeleteEventsOnSnapshot()
Delete events after saving snapshot viaRetentionCriteria.snapshotEvery
. Events that have sequence number less than the snapshot sequence number minuskeepNSnapshots * numberOfEvents
are deleted.
-
-