Class Sequence
- java.lang.Object
- 
- org.apache.pekko.persistence.query.Offset
- 
- org.apache.pekko.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 thepekko.persistence.query.EventEnvelope, 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 SummaryConstructors Constructor Description Sequence(long value)
 - 
Method SummaryAll 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 org.apache.pekko.persistence.query.OffsetnoOffset, sequence, timeBasedUUID, timestamp
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
- 
 
- 
- 
- 
Method Detail- 
applypublic static Sequence apply(long value) 
 - 
unapplypublic static scala.Option<java.lang.Object> unapply(Sequence x$0) 
 - 
valuepublic long value() 
 - 
comparepublic int compare(Sequence that) - Specified by:
- comparein interface- scala.math.Ordered<Sequence>
 
 - 
copypublic Sequence copy(long value) 
 - 
copy$default$1public long copy$default$1() 
 - 
productPrefixpublic java.lang.String productPrefix() - Specified by:
- productPrefixin interface- scala.Product
 
 - 
productAritypublic int productArity() - Specified by:
- productArityin interface- scala.Product
 
 - 
productElementpublic java.lang.Object productElement(int x$1) - Specified by:
- productElementin interface- scala.Product
 
 - 
productIteratorpublic scala.collection.Iterator<java.lang.Object> productIterator() - Specified by:
- productIteratorin interface- scala.Product
 
 - 
canEqualpublic boolean canEqual(java.lang.Object x$1) - Specified by:
- canEqualin interface- scala.Equals
 
 - 
productElementNamepublic java.lang.String productElementName(int x$1) - Specified by:
- productElementNamein interface- scala.Product
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object x$1) - Specified by:
- equalsin interface- scala.Equals
- Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-