Package akka.persistence.typed
Class SnapshotSelectionCriteria
- java.lang.Object
-
- akka.persistence.typed.SnapshotSelectionCriteria
-
public final class SnapshotSelectionCriteria extends java.lang.ObjectSelection criteria for loading and deleting snapshots.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()static SnapshotSelectionCriterialatest()The latest saved snapshot.longmaxSequenceNr()longmaxTimestamp()longminSequenceNr()longminTimestamp()static SnapshotSelectionCriterianone()No saved snapshot matches.java.lang.StringtoString()SnapshotSelectionCriteriawithMaxSequenceNr(long newMaxSequenceNr)upper bound for a selected snapshot's sequence numberSnapshotSelectionCriteriawithMaxTimestamp(long newMaxTimestamp)upper bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.SnapshotSelectionCriteriawithMinSequenceNr(long newMinSequenceNr)lower bound for a selected snapshot's sequence numberSnapshotSelectionCriteriawithMinTimestamp(long newMinTimestamp)lower bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.
-
-
-
Method Detail
-
latest
public static SnapshotSelectionCriteria latest()
The latest saved snapshot.
-
none
public static SnapshotSelectionCriteria none()
No saved snapshot matches.
-
maxSequenceNr
public long maxSequenceNr()
-
maxTimestamp
public long maxTimestamp()
-
minSequenceNr
public long minSequenceNr()
-
minTimestamp
public long minTimestamp()
-
withMaxSequenceNr
public SnapshotSelectionCriteria withMaxSequenceNr(long newMaxSequenceNr)
upper bound for a selected snapshot's sequence number
-
withMaxTimestamp
public SnapshotSelectionCriteria withMaxTimestamp(long newMaxTimestamp)
upper bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.
-
withMinSequenceNr
public SnapshotSelectionCriteria withMinSequenceNr(long newMinSequenceNr)
lower bound for a selected snapshot's sequence number
-
withMinTimestamp
public SnapshotSelectionCriteria withMinTimestamp(long newMinTimestamp)
lower bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-