Interface IPersistentRepresentation
Representation of a persistent message in the journal plugin API.
Namespace: Akka.Persistence
Assembly: Akka.Persistence.dll
Syntax
public interface IPersistentRepresentation : IMessage
Properties
| Edit this page View SourceIsDeleted
Not used in new records stored with Akka.net v1.1 and above, but
old records may have this as true if
it was a non-permanent delete.
Declaration
bool IsDeleted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Manifest
Returns the persistent payload's manifest if available.
Declaration
string Manifest { get; }
Property Value
| Type | Description |
|---|---|
| string |
Payload
This persistent message's payload.
Declaration
object Payload { get; }
Property Value
| Type | Description |
|---|---|
| object |
PersistenceId
Persistent id that journals a persistent message.
Declaration
string PersistenceId { get; }
Property Value
| Type | Description |
|---|---|
| string |
Sender
Sender of this message
Declaration
IActorRef Sender { get; }
Property Value
| Type | Description |
|---|---|
| IActorRef |
SequenceNr
Sequence number of this persistent message.
Declaration
long SequenceNr { get; }
Property Value
| Type | Description |
|---|---|
| long |
Timestamp
The timestamp is the time the event was stored, in ticks. The value of this property
represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight, January 1, 0001
in the Gregorian calendar (same as DateTime.Now.Ticks).
Value 0 is used if undefined.
Declaration
long Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| long |
WriterGuid
Unique identifier of the writing persistent actor. Used to detect anomalies with overlapping writes from multiple persistent actors, which can result in inconsistent replays.
Declaration
string WriterGuid { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceUpdate(long, string, bool, IActorRef, string)
Creates a new deep copy of this message.
Declaration
IPersistentRepresentation Update(long sequenceNr, string persistenceId, bool isDeleted, IActorRef sender, string writerGuid)
Parameters
| Type | Name | Description |
|---|---|---|
| long | sequenceNr | TBD |
| string | persistenceId | TBD |
| bool | isDeleted | TBD |
| IActorRef | sender | TBD |
| string | writerGuid | TBD |
Returns
| Type | Description |
|---|---|
| IPersistentRepresentation | TBD |
WithManifest(string)
Creates a new persistent message with the specified manifest.
Declaration
IPersistentRepresentation WithManifest(string manifest)
Parameters
| Type | Name | Description |
|---|---|---|
| string | manifest | The persistent payload's manifest. |
Returns
| Type | Description |
|---|---|
| IPersistentRepresentation | TBD |
WithPayload(object)
Creates a new persistent message with the specified payload.
Declaration
IPersistentRepresentation WithPayload(object payload)
Parameters
| Type | Name | Description |
|---|---|---|
| object | payload | This persistent message's payload. |
Returns
| Type | Description |
|---|---|
| IPersistentRepresentation | TBD |
WithTimestamp(long)
Creates a new persistent message with the specified timestamp.
Declaration
IPersistentRepresentation WithTimestamp(long timestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| long | timestamp | The time the event was stored, in ticks. |
Returns
| Type | Description |
|---|---|
| IPersistentRepresentation | TBD |
Edit this page