Package akka.persistence.typed
Class SnapshotSelectionCriteria
- java.lang.Object
-
- akka.persistence.typed.SnapshotSelectionCriteria
-
public final class SnapshotSelectionCriteria extends java.lang.Object
upper bound for a selected snapshot's sequence number
-
-
Constructor Summary
Constructors Constructor Description SnapshotSelectionCriteria(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
static SnapshotSelectionCriteria
fromUntyped(SnapshotSelectionCriteria c)
INTERNAL APIint
hashCode()
static SnapshotSelectionCriteria
latest()
long
maxSequenceNr()
long
maxTimestamp()
long
minSequenceNr()
long
minTimestamp()
static SnapshotSelectionCriteria
none()
No saved snapshot matches.SnapshotSelectionCriteria
toClassic()
INTERNAL APIjava.lang.String
toString()
SnapshotSelectionCriteria
withMaxSequenceNr(long newMaxSequenceNr)
SnapshotSelectionCriteria
withMaxTimestamp(long newMaxTimestamp)
upper bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.SnapshotSelectionCriteria
withMinSequenceNr(long newMinSequenceNr)
lower bound for a selected snapshot's sequence numberSnapshotSelectionCriteria
withMinTimestamp(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()
-
none
public static SnapshotSelectionCriteria none()
No saved snapshot matches.- Returns:
- (undocumented)
-
fromUntyped
public static SnapshotSelectionCriteria fromUntyped(SnapshotSelectionCriteria c)
INTERNAL API- Parameters:
c
- (undocumented)- Returns:
- (undocumented)
-
maxSequenceNr
public long maxSequenceNr()
-
maxTimestamp
public long maxTimestamp()
-
minSequenceNr
public long minSequenceNr()
-
minTimestamp
public long minTimestamp()
-
withMaxSequenceNr
public SnapshotSelectionCriteria withMaxSequenceNr(long newMaxSequenceNr)
-
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.- Parameters:
newMaxTimestamp
- (undocumented)- Returns:
- (undocumented)
-
withMinSequenceNr
public SnapshotSelectionCriteria withMinSequenceNr(long newMinSequenceNr)
lower bound for a selected snapshot's sequence number- Parameters:
newMinSequenceNr
- (undocumented)- Returns:
- (undocumented)
-
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.- Parameters:
newMinTimestamp
- (undocumented)- Returns:
- (undocumented)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toClassic
public SnapshotSelectionCriteria toClassic()
INTERNAL API- Returns:
- (undocumented)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-