Search Results for

    Show / Hide Table of Contents

    Class Mailbox

    Mailbox base class

    Inheritance
    object
    Mailbox
    LoggerMailbox
    Implements
    IRunnable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Dispatch
    Assembly: Akka.dll
    Syntax
    public class Mailbox : IRunnable

    Constructors

    | Edit this page View Source

    Mailbox(IMessageQueue)

    Creates a new mailbox

    Declaration
    public Mailbox(IMessageQueue messageQueue)
    Parameters
    Type Name Description
    IMessageQueue messageQueue

    The IMessageQueue used by this mailbox.

    Properties

    | Edit this page View Source

    Dispatcher

    The MessageDispatcher for the underlying mailbox.

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

    MessageQueue

    The queue used for user-defined messages inside this mailbox

    Declaration
    public IMessageQueue MessageQueue { get; }
    Property Value
    Type Description
    IMessageQueue

    Methods

    | Edit this page View Source

    CleanUp()

    Overrideable callback to clean up the mailbox, called when an actor is unregistered.

    By default it dequeues all system messages + messages and ships them to the owning actor's systems' Akka.Actor.DeadLetterMailbox.

    Declaration
    public virtual void CleanUp()
    | Edit this page View Source

    DebugPrint(string, params object[])

    Prints a message tosStandard out if the Compile symbol "MAILBOXDEBUG" has been set. If the symbol is not set all invocations to this method will be removed by the compiler.

    Declaration
    [Conditional("MAILBOXDEBUG")]
    public static void DebugPrint(string message, params object[] args)
    Parameters
    Type Name Description
    string message

    TBD

    object[] args

    TBD

    | Edit this page View Source

    Run()

    Processes the contents of the mailbox

    Declaration
    public void Run()
    | Edit this page View Source

    SetActor(ActorCell)

    Attaches an ActorCell to the Mailbox.

    Declaration
    public virtual void SetActor(ActorCell actorCell)
    Parameters
    Type Name Description
    ActorCell actorCell

    TBD

    Implements

    IRunnable

    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