Package org.apache.pekko.persistence
Class SnapshotSelectionCriteria
- java.lang.Object
-
- org.apache.pekko.persistence.SnapshotSelectionCriteria
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class SnapshotSelectionCriteria extends java.lang.Object implements scala.Product, java.io.Serializable
Selection criteria for loading and deleting snapshots.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
- See Also:
Recovery
, Serialized Form
-
-
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 static long
$lessinit$greater$default$1()
static long
$lessinit$greater$default$2()
static long
$lessinit$greater$default$3()
static long
$lessinit$greater$default$4()
static SnapshotSelectionCriteria
apply(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
static long
apply$default$1()
static long
apply$default$2()
static long
apply$default$3()
static long
apply$default$4()
boolean
canEqual(java.lang.Object x$1)
SnapshotSelectionCriteria
copy(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
long
copy$default$1()
long
copy$default$2()
long
copy$default$3()
long
copy$default$4()
static SnapshotSelectionCriteria
create(long maxSequenceNr, long maxTimestamp)
Java API.static SnapshotSelectionCriteria
create(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
Java API.boolean
equals(java.lang.Object x$1)
int
hashCode()
static SnapshotSelectionCriteria
latest()
Java API.static SnapshotSelectionCriteria
Latest()
The latest saved snapshot.long
maxSequenceNr()
long
maxTimestamp()
long
minSequenceNr()
long
minTimestamp()
static SnapshotSelectionCriteria
none()
Java API.static SnapshotSelectionCriteria
None()
No saved snapshot matches.int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
static scala.Option<scala.Tuple4<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>>
unapply(SnapshotSelectionCriteria x$0)
-
-
-
Method Detail
-
$lessinit$greater$default$1
public static long $lessinit$greater$default$1()
-
$lessinit$greater$default$2
public static long $lessinit$greater$default$2()
-
$lessinit$greater$default$3
public static long $lessinit$greater$default$3()
-
$lessinit$greater$default$4
public static long $lessinit$greater$default$4()
-
Latest
public static SnapshotSelectionCriteria Latest()
The latest saved snapshot.
-
None
public static SnapshotSelectionCriteria None()
No saved snapshot matches.
-
create
public static SnapshotSelectionCriteria create(long maxSequenceNr, long maxTimestamp)
Java API.
-
create
public static SnapshotSelectionCriteria create(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
Java API.
-
latest
public static SnapshotSelectionCriteria latest()
Java API.
-
none
public static SnapshotSelectionCriteria none()
Java API.
-
apply
public static SnapshotSelectionCriteria apply(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
-
apply$default$1
public static long apply$default$1()
-
apply$default$2
public static long apply$default$2()
-
apply$default$3
public static long apply$default$3()
-
apply$default$4
public static long apply$default$4()
-
unapply
public static scala.Option<scala.Tuple4<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>> unapply(SnapshotSelectionCriteria x$0)
-
maxSequenceNr
public long maxSequenceNr()
-
maxTimestamp
public long maxTimestamp()
-
minSequenceNr
public long minSequenceNr()
-
minTimestamp
public long minTimestamp()
-
copy
public SnapshotSelectionCriteria copy(long maxSequenceNr, long maxTimestamp, long minSequenceNr, long minTimestamp)
-
copy$default$1
public long copy$default$1()
-
copy$default$2
public long copy$default$2()
-
copy$default$3
public long copy$default$3()
-
copy$default$4
public long copy$default$4()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-