Class TimestampOffset$
java.lang.Object
org.apache.pekko.persistence.query.TimestampOffset$
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TimestampOffset$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTimestamp based offset.toTimestampOffset(Offset offset) Try to convert the Offset to a TimestampOffset.unapply(TimestampOffset x$0) Zero()
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
TimestampOffset$
public TimestampOffset$()
-
-
Method Details
-
Zero
-
apply
-
toTimestampOffset
Try to convert the Offset to a TimestampOffset. Epoch timestamp is used forNoOffset. -
apply
public TimestampOffset apply(Instant timestamp, Instant readTimestamp, scala.collection.immutable.Map<String, Object> seen) 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
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.API May Change
- Parameters:
timestamp- time when the event was stored, microsecond granularity database timestampreadTimestamp- time when the event was read, microsecond granularity database timestampseen- List of sequence nrs for every persistence id seen at this timestamp
-
unapply
public scala.Option<scala.Tuple3<Instant,Instant, unapplyscala.collection.immutable.Map<String, Object>>> (TimestampOffset x$0)
-