Search Results for

    Show / Hide Table of Contents

    Class MessageDispatcher

    Class responsible for pushing messages from an actor's mailbox into its receive methods. Comes in many different flavors.

    Inheritance
    object
    MessageDispatcher
    Dispatcher
    CallingThreadDispatcher
    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 MessageDispatcher

    Constructors

    | Edit this page View Source

    MessageDispatcher(MessageDispatcherConfigurator)

    Initializes a new instance of the MessageDispatcher class.

    Declaration
    protected MessageDispatcher(MessageDispatcherConfigurator configurator)
    Parameters
    Type Name Description
    MessageDispatcherConfigurator configurator

    TBD

    Fields

    | Edit this page View Source

    DefaultThroughput

    The default throughput

    Declaration
    public const int DefaultThroughput = 100
    Field Value
    Type Description
    int

    Properties

    | Edit this page View Source

    Configurator

    The configurator used to configure this message dispatcher.

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

    EventStream

    The EventStream for this dispatcher's actor system

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

    Id

    The ID for this dispatcher.

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

    Inhabitants

    The number of actors attached to this MessageDispatcher

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

    Mailboxes

    The list of available Mailboxes for this dispatcher's actor system

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

    Throughput

    Gets or sets the throughput.

    Declaration
    public int Throughput { get; set; }
    Property Value
    Type Description
    int

    The throughput.

    | Edit this page View Source

    ThroughputDeadlineTime

    Gets or sets the throughput deadline time.

    Declaration
    public long? ThroughputDeadlineTime { get; protected set; }
    Property Value
    Type Description
    long?

    The throughput deadline time.

    Methods

    | Edit this page View Source

    Attach(ActorCell)

    Attaches the dispatcher to the ActorCell

    Practically, doesn't do very much right now - dispatchers aren't responsible for creating mailboxes in Akka.NET
    Declaration
    public virtual void Attach(ActorCell cell)
    Parameters
    Type Name Description
    ActorCell cell

    The ActorCell belonging to the actor who's attaching to this dispatcher.

    | Edit this page View Source

    Detach(ActorCell)

    Detaches the dispatcher to the ActorCell

    Only really used in dispatchers with 1:1 relationship with dispatcher.
    Declaration
    public virtual void Detach(ActorCell cell)
    Parameters
    Type Name Description
    ActorCell cell

    The ActorCell belonging to the actor who's detaching from this dispatcher.

    | Edit this page View Source

    Dispatch(ActorCell, Envelope)

    Dispatches a user-defined message from a mailbox to an ActorCell

    Declaration
    public virtual void Dispatch(ActorCell cell, Envelope envelope)
    Parameters
    Type Name Description
    ActorCell cell

    TBD

    Envelope envelope

    TBD

    | Edit this page View Source

    ExecuteTask(IRunnable)

    Schedules the IRunnable to be executed.

    Declaration
    protected abstract void ExecuteTask(IRunnable run)
    Parameters
    Type Name Description
    IRunnable run

    The asynchronous task we're going to run

    | Edit this page View Source

    ReportFailure(Exception)

    Publish failure that occurred while inside the running MessageDispatcher to the EventStream.

    Declaration
    protected void ReportFailure(Exception ex)
    Parameters
    Type Name Description
    Exception ex

    The failure to publish.

    | Edit this page View Source

    Schedule(IRunnable)

    Schedules an arbitrary task to run.

    Declaration
    public void Schedule(IRunnable run)
    Parameters
    Type Name Description
    IRunnable run

    The run.

    | Edit this page View Source

    Schedule(Action)

    Schedules the specified delegate.

    Declaration
    public void Schedule(Action run)
    Parameters
    Type Name Description
    Action run

    The run.

    | Edit this page View Source

    SystemDispatch(ActorCell, SystemMessage)

    Dispatches a SystemMessage from a mailbox to an ActorCell

    Declaration
    public virtual void SystemDispatch(ActorCell cell, SystemMessage message)
    Parameters
    Type Name Description
    ActorCell cell

    TBD

    SystemMessage message

    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