Package akka.persistence.typed
Class SnapshotMetadata
- java.lang.Object
-
- akka.persistence.typed.SnapshotMetadata
-
public final class SnapshotMetadata extends java.lang.Object
Snapshot metadata.param: persistenceId id of persistent actor from which the snapshot was taken. param: sequenceNr sequence number at which the snapshot was taken. param: timestamp time at which the snapshot was saved, defaults to 0 when unknown. in milliseconds from the epoch of 1970-01-01T00:00:00Z.
-
-
Constructor Summary
Constructors Constructor Description SnapshotMetadata(java.lang.String persistenceId, long sequenceNr, long timestamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnapshotMetadata
apply(java.lang.String persistenceId, long sequenceNr, long timestamp)
java.lang.String
persistenceId()
long
sequenceNr()
long
timestamp()
java.lang.String
toString()
-
-
-
Method Detail
-
apply
public static SnapshotMetadata apply(java.lang.String persistenceId, long sequenceNr, long timestamp)
- Parameters:
persistenceId
- id of persistent actor from which the snapshot was taken.sequenceNr
- sequence number at which the snapshot was taken.timestamp
- time at which the snapshot was saved, defaults to 0 when unknown. in milliseconds from the epoch of 1970-01-01T00:00:00Z.
-
persistenceId
public java.lang.String persistenceId()
-
sequenceNr
public long sequenceNr()
-
timestamp
public long timestamp()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-