Package akka.persistence
Interface PersistentRepr
-
- All Superinterfaces:
Message
,java.io.Serializable
,scala.Serializable
- All Known Implementing Classes:
PersistentImpl
public interface PersistentRepr extends Message
This persistent message's payload.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deleted()
Not used in new records stored with Akka v2.4, but old records from v2.3 may have this astrue
if it was a non-permanent delete.java.lang.String
manifest()
Returns the persistent payload's manifest if availablejava.lang.Object
payload()
java.lang.String
persistenceId()
Persistent id that journals a persistent messageActorRef
sender()
Sender of this message.long
sequenceNr()
This persistent message's sequence number.long
timestamp()
Thetimestamp
is the time the event was stored, in milliseconds since midnight, January 1, 1970 UTC (same asSystem.currentTimeMillis
).PersistentRepr
update(long sequenceNr, java.lang.String persistenceId, boolean deleted, ActorRef sender, java.lang.String writerUuid)
Creates a new copy of thisPersistentRepr
.long
update$default$1()
java.lang.String
update$default$2()
boolean
update$default$3()
ActorRef
update$default$4()
java.lang.String
update$default$5()
PersistentRepr
withManifest(java.lang.String manifest)
Creates a new persistent message with the specifiedmanifest
.PersistentRepr
withPayload(java.lang.Object payload)
Creates a new persistent message with the specifiedpayload
.PersistentRepr
withTimestamp(long newTimestamp)
java.lang.String
writerUuid()
Unique identifier of the writing persistent actor.
-
-
-
Method Detail
-
payload
java.lang.Object payload()
-
manifest
java.lang.String manifest()
Returns the persistent payload's manifest if available- Returns:
- (undocumented)
-
persistenceId
java.lang.String persistenceId()
Persistent id that journals a persistent message- Returns:
- (undocumented)
-
sequenceNr
long sequenceNr()
This persistent message's sequence number.- Returns:
- (undocumented)
-
timestamp
long timestamp()
Thetimestamp
is the time the event was stored, in milliseconds since midnight, January 1, 1970 UTC (same asSystem.currentTimeMillis
).Value
0
is used if undefined.- Returns:
- (undocumented)
-
withTimestamp
PersistentRepr withTimestamp(long newTimestamp)
-
writerUuid
java.lang.String writerUuid()
Unique identifier of the writing persistent actor. Used to detect anomalies with overlapping writes from multiple persistent actors, which can result in inconsistent replays.- Returns:
- (undocumented)
-
withPayload
PersistentRepr withPayload(java.lang.Object payload)
Creates a new persistent message with the specifiedpayload
.- Parameters:
payload
- (undocumented)- Returns:
- (undocumented)
-
withManifest
PersistentRepr withManifest(java.lang.String manifest)
Creates a new persistent message with the specifiedmanifest
.- Parameters:
manifest
- (undocumented)- Returns:
- (undocumented)
-
deleted
boolean deleted()
Not used in new records stored with Akka v2.4, but old records from v2.3 may have this astrue
if it was a non-permanent delete.- Returns:
- (undocumented)
-
sender
ActorRef sender()
Sender of this message.- Returns:
- (undocumented)
-
update
PersistentRepr update(long sequenceNr, java.lang.String persistenceId, boolean deleted, ActorRef sender, java.lang.String writerUuid)
Creates a new copy of thisPersistentRepr
.- Parameters:
sequenceNr
- (undocumented)persistenceId
- (undocumented)deleted
- (undocumented)sender
- (undocumented)writerUuid
- (undocumented)- Returns:
- (undocumented)
-
update$default$1
long update$default$1()
-
update$default$2
java.lang.String update$default$2()
-
update$default$3
boolean update$default$3()
-
update$default$4
ActorRef update$default$4()
-
update$default$5
java.lang.String update$default$5()
-
-