Class 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 Detail

      • SnapshotMetadata

        public SnapshotMetadata​(java.lang.String persistenceId,
                                long sequenceNr,
                                long timestamp)
    • 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 class java.lang.Object