Class TimestampOffset
java.lang.Object
org.apache.pekko.persistence.query.Offset
org.apache.pekko.persistence.query.TimestampOffset
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimestampOffset(Instant timestamp, Instant readTimestamp, scala.collection.immutable.Map<String, Object> seen) -
Method Summary
Modifier and TypeMethodDescriptionstatic TimestampOffsetTimestamp based offset.static TimestampOffsetbooleanbooleangetSeen()Java APIinthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>seen()toString()static TimestampOffsettoTimestampOffset(Offset offset) Try to convert the Offset to a TimestampOffset.unapply(TimestampOffset x$0) static TimestampOffsetZero()Methods inherited from class org.apache.pekko.persistence.query.Offset
noOffset, sequence, timeBasedUUID, timestampMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
TimestampOffset
-
-
Method Details
-
Zero
-
apply
public static TimestampOffset apply(Instant timestamp, scala.collection.immutable.Map<String, Object> seen) -
toTimestampOffset
Try to convert the Offset to a TimestampOffset. Epoch timestamp is used forNoOffset. -
apply
public static 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 static scala.Option<scala.Tuple3<Instant,Instant, unapplyscala.collection.immutable.Map<String, Object>>> (TimestampOffset x$0) -
timestamp
-
readTimestamp
-
seen
-
getSeen
Java API -
hashCode
public int hashCode() -
equals
-
copy
public TimestampOffset copy(Instant timestamp, Instant readTimestamp, scala.collection.immutable.Map<String, Object> seen) -
copy$default$1
-
copy$default$2
-
copy$default$3
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
toString
-