Sequence

org.apache.pekko.persistence.query.Sequence
final case class Sequence(value: Long) extends Offset, Ordered[Sequence]

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.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Ordered[Sequence]
trait Comparable[Sequence]
class Offset
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def compare(that: Sequence): Int

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product