Packages

final case class TimestampOffset(timestamp: Instant, readTimestamp: Instant, seen: Map[String, Long]) extends Offset with Product with Serializable

Timestamp based offset. Since there can be several events for the same timestamp it keeps track of what sequence nrs for every persistence id that have been seen at this specific timestamp.

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.

API May Change

timestamp

time when the event was stored, microsecond granularity database timestamp

readTimestamp

time when the event was read, microsecond granularity database timestamp

seen

List of sequence nrs for every persistence id seen at this timestamp

Annotations
@ApiMayChange()
Source
Offset.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimestampOffset
  2. Serializable
  3. Product
  4. Equals
  5. Offset
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TimestampOffset(timestamp: Instant, readTimestamp: Instant, seen: Map[String, Long])

    timestamp

    time when the event was stored, microsecond granularity database timestamp

    readTimestamp

    time when the event was read, microsecond granularity database timestamp

    seen

    List of sequence nrs for every persistence id seen at this timestamp

Value Members

  1. def equals(obj: Any): Boolean
    Definition Classes
    TimestampOffset → Equals → AnyRef → Any
  2. def getSeen(): Map[String, Long]

    Java API

  3. def hashCode(): Int
    Definition Classes
    TimestampOffset → AnyRef → Any
  4. def productElementNames: Iterator[String]
    Definition Classes
    Product
  5. val readTimestamp: Instant
  6. val seen: Map[String, Long]
  7. val timestamp: Instant