Class TimestampOffsets$

java.lang.Object
org.apache.pekko.persistence.testkit.query.internal.TimestampOffsets$

public class TimestampOffsets$ extends Object
INTERNAL API

The test kit journal assigns a strictly increasing timestamp to each atomic write, and an atomic write only contains events of a single persistence id, so (timestamp, persistenceId, sequenceNr) identifies the position of an event.

  • Field Details

    • MODULE$

      public static final TimestampOffsets$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • TimestampOffsets$

      public TimestampOffsets$()
  • Method Details

    • offsetFor

      public TimestampOffset offsetFor(PersistentRepr pr)
    • isAfter

      public scala.Function1<PersistentRepr,Object> isAfter(Offset offset)
      Returns a predicate that selects the events after the given offset, which must be a TimestampOffset or pekko.persistence.query.NoOffset. The offset is exclusive.