Class SnapshotMetadata

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Product3<java.lang.String,​java.lang.Object,​java.lang.Object>

    public final class SnapshotMetadata
    extends java.lang.Object
    implements scala.Product3<java.lang.String,​java.lang.Object,​java.lang.Object>, java.io.Serializable
    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. param: metadata a journal can optionally support persisting metadata separate to the domain state, used for Replicated Event Sourcing support

    See Also:
    Serialized Form
    • Constructor Detail

      • SnapshotMetadata

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

        public static SnapshotMetadata apply​(java.lang.String persistenceId,
                                             long sequenceNr,
                                             long timestamp)
      • apply

        public static SnapshotMetadata apply​(java.lang.String persistenceId,
                                             long sequenceNr)
      • unapply

        public static scala.Option<scala.Tuple3<java.lang.String,​java.lang.Object,​java.lang.Object>> unapply​(SnapshotMetadata sm)
      • apply$default$3

        public static long apply$default$3()
      • $lessinit$greater$default$3

        public static long $lessinit$greater$default$3()
      • persistenceId

        public java.lang.String persistenceId()
      • sequenceNr

        public long sequenceNr()
      • timestamp

        public long timestamp()
      • metadata

        public scala.Option<java.lang.Object> metadata()
      • withMetadata

        public SnapshotMetadata withMetadata​(java.lang.Object metadata)
      • copy

        public SnapshotMetadata copy​(java.lang.String persistenceId,
                                     long sequenceNr,
                                     long timestamp)
      • copy$default$1

        public java.lang.String copy$default$1()
      • copy$default$2

        public long copy$default$2()
      • copy$default$3

        public long copy$default$3()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • _1

        public java.lang.String _1()
        Specified by:
        _1 in interface scala.Product3<java.lang.String,​java.lang.Object,​java.lang.Object>
      • _2

        public long _2()
        Specified by:
        _2 in interface scala.Product3<java.lang.String,​java.lang.Object,​java.lang.Object>
      • _3

        public long _3()
        Specified by:
        _3 in interface scala.Product3<java.lang.String,​java.lang.Object,​java.lang.Object>
      • canEqual

        public boolean canEqual​(java.lang.Object that)
        Specified by:
        canEqual in interface scala.Equals
      • equals

        public boolean equals​(java.lang.Object other)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object