Class SnapshotSelectionCriteria
java.lang.Object
org.apache.pekko.persistence.typed.SnapshotSelectionCriteria
Selection criteria for loading and deleting snapshots.
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static SnapshotSelectionCriterialatest()The latest saved snapshot.longlonglonglongstatic SnapshotSelectionCriterianone()No saved snapshot matches.toString()withMaxSequenceNr(long newMaxSequenceNr) upper bound for a selected snapshot's sequence numberwithMaxTimestamp(long newMaxTimestamp) upper bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.withMinSequenceNr(long newMinSequenceNr) lower bound for a selected snapshot's sequence numberwithMinTimestamp(long newMinTimestamp) lower bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.
-
Method Details
-
latest
The latest saved snapshot. -
none
No saved snapshot matches. -
maxSequenceNr
public long maxSequenceNr() -
maxTimestamp
public long maxTimestamp() -
minSequenceNr
public long minSequenceNr() -
minTimestamp
public long minTimestamp() -
withMaxSequenceNr
upper bound for a selected snapshot's sequence number -
withMaxTimestamp
upper bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z. -
withMinSequenceNr
lower bound for a selected snapshot's sequence number -
withMinTimestamp
lower bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z. -
toString
-
equals
-
hashCode
public int hashCode()
-