public final class SnapshotSelectionCriteria
extends java.lang.Object
implements scala.Product, scala.Serializable
param: maxSequenceNr upper bound for a selected snapshot's sequence number. Default is no upper bound,
i.e. Long.MaxValue
param: maxTimestamp upper bound for a selected snapshot's timestamp. Default is no upper bound,
i.e. Long.MaxValue
param: minSequenceNr lower bound for a selected snapshot's sequence number. Default is no lower bound,
i.e. 0L
param: minTimestamp lower bound for a selected snapshot's timestamp. Default is no lower bound,
i.e. 0L
Recovery
,
Serialized FormConstructor and Description |
---|
SnapshotSelectionCriteria(long maxSequenceNr,
long maxTimestamp,
long minSequenceNr,
long minTimestamp) |
Modifier and Type | Method and Description |
---|---|
abstract static boolean |
canEqual(java.lang.Object that) |
static SnapshotSelectionCriteria |
create(long maxSequenceNr,
long maxTimestamp)
Java API.
|
static SnapshotSelectionCriteria |
create(long maxSequenceNr,
long maxTimestamp,
long minSequenceNr,
long minTimestamp)
Java API.
|
abstract static boolean |
equals(java.lang.Object that) |
static SnapshotSelectionCriteria |
latest()
Java API.
|
static SnapshotSelectionCriteria |
Latest()
The latest saved snapshot.
|
SnapshotSelectionCriteria |
limit(long toSequenceNr)
INTERNAL API.
|
boolean |
matches(SnapshotMetadata metadata)
INTERNAL API.
|
long |
maxSequenceNr() |
long |
maxTimestamp() |
long |
minSequenceNr() |
long |
minTimestamp() |
static SnapshotSelectionCriteria |
none()
Java API.
|
static SnapshotSelectionCriteria |
None()
No saved snapshot matches.
|
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SnapshotSelectionCriteria(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
public static SnapshotSelectionCriteria Latest()
public static SnapshotSelectionCriteria None()
public static SnapshotSelectionCriteria create(long maxSequenceNr, long maxTimestamp)
maxSequenceNr
- (undocumented)maxTimestamp
- (undocumented)public static SnapshotSelectionCriteria create(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
maxSequenceNr
- (undocumented)maxTimestamp
- (undocumented)minSequenceNr
- (undocumented)minTimestamp
- (undocumented)public static SnapshotSelectionCriteria latest()
public static SnapshotSelectionCriteria none()
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public long maxSequenceNr()
public long maxTimestamp()
public long minSequenceNr()
public long minTimestamp()
public SnapshotSelectionCriteria limit(long toSequenceNr)
toSequenceNr
- (undocumented)public boolean matches(SnapshotMetadata metadata)
metadata
- (undocumented)