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 |
---|---|
static SnapshotSelectionCriteria |
create(long maxSequenceNr,
long maxTimestamp)
Java API.
|
static SnapshotSelectionCriteria |
create(long maxSequenceNr,
long maxTimestamp,
long minSequenceNr,
long minTimestamp)
Java API.
|
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.
|
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 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)