Packages

final case class Sequence(value: Long) extends Offset with Ordered[Sequence] with Product with Serializable

Corresponds to an ordered sequence number for the events. Note that the corresponding offset of each event is provided in the akka.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.

Source
Offset.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sequence
  2. Serializable
  3. Product
  4. Equals
  5. Ordered
  6. Comparable
  7. Offset
  8. AnyRef
  9. Any
Implicitly
  1. by orderingToOrdered
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Sequence(value: Long)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Sequence toany2stringadd[Sequence] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Sequence, B)
    Implicit
    This member is added by an implicit conversion from Sequence toArrowAssoc[Sequence] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. def <(that: Sequence): Boolean
    Definition Classes
    Ordered
  6. def <=(that: Sequence): Boolean
    Definition Classes
    Ordered
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def >(that: Sequence): Boolean
    Definition Classes
    Ordered
  9. def >=(that: Sequence): Boolean
    Definition Classes
    Ordered
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  12. def compare(that: Sequence): Int
    Definition Classes
    Sequence → Ordered
  13. def compareTo(that: Sequence): Int
    Definition Classes
    Ordered → Comparable
  14. def ensuring(cond: (Sequence) => Boolean, msg: => Any): Sequence
    Implicit
    This member is added by an implicit conversion from Sequence toEnsuring[Sequence] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (Sequence) => Boolean): Sequence
    Implicit
    This member is added by an implicit conversion from Sequence toEnsuring[Sequence] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: => Any): Sequence
    Implicit
    This member is added by an implicit conversion from Sequence toEnsuring[Sequence] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): Sequence
    Implicit
    This member is added by an implicit conversion from Sequence toEnsuring[Sequence] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. val value: Long
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Shadowed Implicit Value Members

  1. def <(that: Sequence): Boolean
    Implicit
    This member is added by an implicit conversion from Sequence toOrdered[Sequence] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (sequence: Ordered[Sequence]).<(that)
    Definition Classes
    Ordered
  2. def <=(that: Sequence): Boolean
    Implicit
    This member is added by an implicit conversion from Sequence toOrdered[Sequence] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (sequence: Ordered[Sequence]).<=(that)
    Definition Classes
    Ordered
  3. def >(that: Sequence): Boolean
    Implicit
    This member is added by an implicit conversion from Sequence toOrdered[Sequence] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (sequence: Ordered[Sequence]).>(that)
    Definition Classes
    Ordered
  4. def >=(that: Sequence): Boolean
    Implicit
    This member is added by an implicit conversion from Sequence toOrdered[Sequence] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (sequence: Ordered[Sequence]).>=(that)
    Definition Classes
    Ordered
  5. def compare(that: Sequence): Int
    Implicit
    This member is added by an implicit conversion from Sequence toOrdered[Sequence] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (sequence: Ordered[Sequence]).compare(that)
    Definition Classes
    Ordered
  6. def compareTo(that: Sequence): Int
    Implicit
    This member is added by an implicit conversion from Sequence toOrdered[Sequence] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (sequence: Ordered[Sequence]).compareTo(that)
    Definition Classes
    Ordered → Comparable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Sequence toStringFormat[Sequence] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (Sequence, B)
    Implicit
    This member is added by an implicit conversion from Sequence toArrowAssoc[Sequence] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[Sequence]

Inherited from Comparable[Sequence]

Inherited from Offset

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion orderingToOrdered fromSequence to Ordered[Sequence]

Inherited by implicit conversion any2stringadd fromSequence to any2stringadd[Sequence]

Inherited by implicit conversion StringFormat fromSequence to StringFormat[Sequence]

Inherited by implicit conversion Ensuring fromSequence to Ensuring[Sequence]

Inherited by implicit conversion ArrowAssoc fromSequence to ArrowAssoc[Sequence]

Ungrouped