Package org.apache.pekko.persistence
Class SnapshotMetadata
- java.lang.Object
-
- org.apache.pekko.persistence.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 Summary
Constructors Constructor Description SnapshotMetadata(java.lang.String persistenceId, long sequenceNr, long timestamp)
SnapshotMetadata(java.lang.String persistenceId, long sequenceNr, long timestamp, scala.Option<java.lang.Object> metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
_1()
long
_2()
long
_3()
static long
$lessinit$greater$default$3()
static SnapshotMetadata
apply(java.lang.String persistenceId, long sequenceNr)
static SnapshotMetadata
apply(java.lang.String persistenceId, long sequenceNr, long timestamp)
static SnapshotMetadata
apply(java.lang.String persistenceId, long sequenceNr, long timestamp, scala.Option<java.lang.Object> meta)
static long
apply$default$3()
boolean
canEqual(java.lang.Object that)
SnapshotMetadata
copy(java.lang.String persistenceId, long sequenceNr, long timestamp)
java.lang.String
copy$default$1()
long
copy$default$2()
long
copy$default$3()
boolean
equals(java.lang.Object other)
int
hashCode()
scala.Option<java.lang.Object>
metadata()
static scala.math.Ordering<SnapshotMetadata>
ordering()
java.lang.String
persistenceId()
java.lang.String
productPrefix()
long
sequenceNr()
long
timestamp()
java.lang.String
toString()
static scala.Option<scala.Tuple3<java.lang.String,java.lang.Object,java.lang.Object>>
unapply(SnapshotMetadata sm)
SnapshotMetadata
withMetadata(java.lang.Object metadata)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
ordering
public static scala.math.Ordering<SnapshotMetadata> ordering()
-
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 classjava.lang.Object
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
_1
public java.lang.String _1()
- Specified by:
_1
in interfacescala.Product3<java.lang.String,java.lang.Object,java.lang.Object>
-
_2
public long _2()
- Specified by:
_2
in interfacescala.Product3<java.lang.String,java.lang.Object,java.lang.Object>
-
_3
public long _3()
- Specified by:
_3
in interfacescala.Product3<java.lang.String,java.lang.Object,java.lang.Object>
-
canEqual
public boolean canEqual(java.lang.Object that)
- Specified by:
canEqual
in interfacescala.Equals
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-