Class Sequence
java.lang.Object
org.apache.pekko.persistence.query.Offset
org.apache.pekko.persistence.query.Sequence
- All Implemented Interfaces:
Serializable,Comparable<Sequence>,scala.Equals,scala.math.Ordered<Sequence>,scala.Product
public final class Sequence
extends Offset
implements scala.math.Ordered<Sequence>, scala.Product, Serializable
Corresponds to an ordered sequence number for the events. Note that the corresponding
offset of each event is provided in the
pekko.persistence.query.EventEnvelope,
which makes it possible to resume the stream at a later point from a given offset.
The offset is exclusive, i.e. the event with the exact same sequence number will not be included
in the returned stream. This means that you can use the offset that is returned in EventEnvelope
as the offset parameter in a subsequent query.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Sequenceapply(long value) booleanintcopy(long value) longbooleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()static scala.Option<Object>longvalue()Methods inherited from class org.apache.pekko.persistence.query.Offset
noOffset, sequence, timeBasedUUID, timestampMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.math.Ordered
$greater, $greater$eq, $less, $less$eq, compareToMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
Sequence
public Sequence(long value)
-
-
Method Details
-
apply
-
unapply
-
value
public long value() -
compare
- Specified by:
comparein interfacescala.math.Ordered<Sequence>
-
copy
-
copy$default$1
public long copy$default$1() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-