Package akka.persistence.query
Class Sequence
- java.lang.Object
-
- akka.persistence.query.Offset
-
- akka.persistence.query.Sequence
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Sequence>,scala.Equals,scala.math.Ordered<Sequence>,scala.Product
public final class Sequence extends Offset implements scala.math.Ordered<Sequence>, scala.Product, java.io.Serializable
Corresponds to an ordered sequence number for the events. Note that the corresponding offset of each event is provided in theEventEnvelope, which makes it possible to resume the stream at a later point from a given offset.The
offsetis 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 inEventEnvelopeas theoffsetparameter in a subsequent query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Sequence(long value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Sequenceapply(long value)booleancanEqual(java.lang.Object x$1)intcompare(Sequence that)Sequencecopy(long value)longcopy$default$1()booleanequals(java.lang.Object x$1)inthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()java.lang.StringtoString()static scala.Option<java.lang.Object>unapply(Sequence x$0)longvalue()-
Methods inherited from class akka.persistence.query.Offset
noOffset, sequence, timeBasedUUID, timestamp
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
apply
public static Sequence apply(long value)
-
unapply
public static scala.Option<java.lang.Object> unapply(Sequence x$0)
-
value
public long value()
-
compare
public int compare(Sequence that)
- Specified by:
comparein interfacescala.math.Ordered<Sequence>
-
copy
public Sequence copy(long value)
-
copy$default$1
public long copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-