Package akka.persistence.query
Class TimestampOffset
- java.lang.Object
- 
- akka.persistence.query.Offset
- 
- akka.persistence.query.TimestampOffset
 
 
- 
 public final class TimestampOffset extends Offset 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 param: timestamp time when the event was stored, microsecond granularity database timestamp param: readTimestamp time when the event was read, microsecond granularity database timestamp param: seen List of sequence nrs for every persistence id seen at this timestamp 
- 
- 
Constructor SummaryConstructors Constructor Description TimestampOffset()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimestampOffsetapply(java.time.Instant timestamp, java.time.Instant readTimestamp, scala.collection.immutable.Map<java.lang.String,java.lang.Object> seen)static TimestampOffsetapply(java.time.Instant timestamp, scala.collection.immutable.Map<java.lang.String,java.lang.Object> seen)booleanequals(java.lang.Object obj)java.util.Map<java.lang.String,java.lang.Long>getSeen()Java APIinthashCode()java.time.InstantreadTimestamp()scala.collection.immutable.Map<java.lang.String,java.lang.Object>seen()java.time.Instanttimestamp()java.lang.StringtoString()static TimestampOffsettoTimestampOffset(Offset offset)Try to convert the Offset to a TimestampOffset.static scala.Option<scala.Tuple3<java.time.Instant,java.time.Instant,scala.collection.immutable.Map<java.lang.String,java.lang.Object>>>unapply(TimestampOffset timestampOffset)static TimestampOffsetZero()- 
Methods inherited from class akka.persistence.query.OffsetnoOffset, sequence, timeBasedUUID, timestamp
 
- 
 
- 
- 
- 
Method Detail- 
Zeropublic static TimestampOffset Zero() 
 - 
applypublic static TimestampOffset apply(java.time.Instant timestamp, scala.collection.immutable.Map<java.lang.String,java.lang.Object> seen) 
 - 
applypublic static TimestampOffset apply(java.time.Instant timestamp, java.time.Instant readTimestamp, scala.collection.immutable.Map<java.lang.String,java.lang.Object> seen) 
 - 
toTimestampOffsetpublic static TimestampOffset toTimestampOffset(Offset offset) Try to convert the Offset to a TimestampOffset. Epoch timestamp is used forNoOffset.
 - 
unapplypublic static scala.Option<scala.Tuple3<java.time.Instant,java.time.Instant,scala.collection.immutable.Map<java.lang.String,java.lang.Object>>> unapply(TimestampOffset timestampOffset) 
 - 
timestamppublic java.time.Instant timestamp() 
 - 
readTimestamppublic java.time.Instant readTimestamp() 
 - 
seenpublic scala.collection.immutable.Map<java.lang.String,java.lang.Object> seen() 
 - 
getSeenpublic java.util.Map<java.lang.String,java.lang.Long> getSeen() Java API
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-