Search Results for

    Show / Hide Table of Contents

    Class MailboxType

    A factory to create IMessageQueues for an optionally provided IActorContext.

    Inheritance
    object
    MailboxType
    BoundedDequeBasedMailbox
    BoundedMailbox
    UnboundedDequeBasedMailbox
    UnboundedMailbox
    UnboundedPriorityMailbox
    UnboundedStablePriorityMailbox
    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 abstract class MailboxType
    Remarks

    Possibly important notice.

    When implementing a custom MailboxType, be aware that there is special semantics attached to ActorOf(Props, string) in that sending the returned IActorRef may, for a short period of time, enqueue the messages first in a dummy queue. Top-level actors are created in two steps, and only after the guardian actor ahs performed that second step will all previously sent messages be transferred from the dummy queue to the real mailbox.

    Implemented as an abstract class in order to enforce constructor requirements.

    Constructors

    | Edit this page View Source

    MailboxType(Settings, Config)

    Constructor used for creating a MailboxType

    Declaration
    protected MailboxType(Settings settings, Config config)
    Parameters
    Type Name Description
    Settings settings

    The Settings for this system.

    Config config

    The Config for this mailbox.

    Fields

    | Edit this page View Source

    Config

    The configuration for this mailbox.

    Declaration
    protected readonly Config Config
    Field Value
    Type Description
    Config
    | Edit this page View Source

    Settings

    The settings for the given ActorSystem.

    Declaration
    protected readonly Settings Settings
    Field Value
    Type Description
    Settings

    Methods

    | Edit this page View Source

    Create(IActorRef, ActorSystem)

    Creates a new IMessageQueue from the specified parameters.

    Declaration
    public abstract IMessageQueue Create(IActorRef owner, ActorSystem system)
    Parameters
    Type Name Description
    IActorRef owner

    Optional.

    ActorSystem system

    Optional.

    Returns
    Type Description
    IMessageQueue

    The resulting IMessageQueue

    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