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 booleandeleted()Not used in new records stored with Akka v2.4, but old records from v2.3 may have this astrueif it was a non-permanent delete.java.lang.Stringmanifest()Returns the persistent payload's manifest if availablejava.lang.Objectpayload()java.lang.StringpersistenceId()Persistent id that journals a persistent messageActorRefsender()Sender of this message.longsequenceNr()This persistent message's sequence number.longtimestamp()Thetimestampis the time the event was stored, in milliseconds since midnight, January 1, 1970 UTC (same asSystem.currentTimeMillis).PersistentReprupdate(long sequenceNr, java.lang.String persistenceId, boolean deleted, ActorRef sender, java.lang.String writerUuid)Creates a new copy of thisPersistentRepr.longupdate$default$1()java.lang.Stringupdate$default$2()booleanupdate$default$3()ActorRefupdate$default$4()java.lang.Stringupdate$default$5()PersistentReprwithManifest(java.lang.String manifest)Creates a new persistent message with the specifiedmanifest.PersistentReprwithPayload(java.lang.Object payload)Creates a new persistent message with the specifiedpayload.PersistentReprwithTimestamp(long newTimestamp)java.lang.StringwriterUuid()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()
Thetimestampis the time the event was stored, in milliseconds since midnight, January 1, 1970 UTC (same asSystem.currentTimeMillis).Value
0is 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 astrueif 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()
-
-