Class SnapshotMetadata

java.lang.Object
org.apache.pekko.persistence.typed.SnapshotMetadata

public final class SnapshotMetadata extends 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 Details

    • SnapshotMetadata

      public SnapshotMetadata(String persistenceId, long sequenceNr, long timestamp)
  • Method Details

    • apply

      public static SnapshotMetadata apply(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 String persistenceId()
    • sequenceNr

      public long sequenceNr()
    • timestamp

      public long timestamp()
    • toString

      public String toString()
      Overrides:
      toString in class Object