Search Results for

    Show / Hide Table of Contents

    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 Source

    IsDeleted

    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
    | Edit this page View Source

    Manifest

    Returns the persistent payload's manifest if available.

    Declaration
    string Manifest { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Payload

    This persistent message's payload.

    Declaration
    object Payload { get; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    PersistenceId

    Persistent id that journals a persistent message.

    Declaration
    string PersistenceId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Sender

    Sender of this message

    Declaration
    IActorRef Sender { get; }
    Property Value
    Type Description
    IActorRef
    | Edit this page View Source

    SequenceNr

    Sequence number of this persistent message.

    Declaration
    long SequenceNr { get; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    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
    | Edit this page View Source

    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 Source

    Update(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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET