Search Results for

    Show / Hide Table of Contents

    Class AtomicWrite

    Represents a single atomic write to an Akka.Persistence journal.

    Inheritance
    object
    AtomicWrite
    Implements
    IPersistentEnvelope
    IMessage
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Akka.Persistence
    Assembly: Akka.Persistence.dll
    Syntax
    public sealed class AtomicWrite : IPersistentEnvelope, IMessage

    Constructors

    | Edit this page View Source

    AtomicWrite(IPersistentRepresentation)

    Initializes a new instance of the AtomicWrite class.

    Declaration
    public AtomicWrite(IPersistentRepresentation @event)
    Parameters
    Type Name Description
    IPersistentRepresentation event

    TBD

    | Edit this page View Source

    AtomicWrite(IImmutableList<IPersistentRepresentation>)

    Initializes a new instance of the AtomicWrite class.

    Declaration
    public AtomicWrite(IImmutableList<IPersistentRepresentation> payload)
    Parameters
    Type Name Description
    IImmutableList<IPersistentRepresentation> payload

    TBD

    Exceptions
    Type Condition
    ArgumentException

    This exception is thrown when either the specified payload is empty or the specified payload contains messages from different PersistenceId.

    ArgumentNullException

    This exception is thrown when the specified payload is undefined.

    Properties

    | Edit this page View Source

    HighestSequenceNr

    TBD

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

    LowestSequenceNr

    TBD

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

    Payload

    This persistent message's payload.

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

    PersistenceId

    TBD

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

    Sender

    TBD

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

    Size

    TBD

    Declaration
    public int Size { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Equals(AtomicWrite)

    Declaration
    public bool Equals(AtomicWrite other)
    Parameters
    Type Name Description
    AtomicWrite other
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    Implements

    IPersistentEnvelope
    IMessage

    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