Search Results for

    Show / Hide Table of Contents

    Class Dispatcher

    The event-based Dispatcher binds a set of actors to a thread pool backed up by a thread-safe queue.

    The preferred way of creating dispatchers is to define them in configuration and use the Lookup(string) method.

    Inheritance
    object
    MessageDispatcher
    Dispatcher
    CurrentSynchronizationContextDispatcher
    PinnedDispatcher
    Inherited Members
    MessageDispatcher.DefaultThroughput
    MessageDispatcher.Configurator
    MessageDispatcher.EventStream
    MessageDispatcher.Mailboxes
    MessageDispatcher.Id
    MessageDispatcher.ThroughputDeadlineTime
    MessageDispatcher.Throughput
    MessageDispatcher.Inhabitants
    MessageDispatcher.Schedule(Action)
    MessageDispatcher.Schedule(IRunnable)
    MessageDispatcher.ReportFailure(Exception)
    MessageDispatcher.Dispatch(ActorCell, Envelope)
    MessageDispatcher.SystemDispatch(ActorCell, SystemMessage)
    MessageDispatcher.Attach(ActorCell)
    MessageDispatcher.Detach(ActorCell)
    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 Dispatcher : MessageDispatcher

    Constructors

    | Edit this page View Source

    Dispatcher(MessageDispatcherConfigurator, string, int, long?, ExecutorServiceFactory, TimeSpan)

    Used to create a default Dispatcher

    Declaration
    public Dispatcher(MessageDispatcherConfigurator configurator, string id, int throughput, long? throughputDeadlineTime, ExecutorServiceFactory executorServiceFactory, TimeSpan shutdownTimeout)
    Parameters
    Type Name Description
    MessageDispatcherConfigurator configurator

    The configurator used.

    string id

    The id of this dispatcher.

    int throughput

    The throughput of this dispatcher.

    long? throughputDeadlineTime

    The deadline for completing N (where N = throughput) operations on the mailbox..

    ExecutorServiceFactory executorServiceFactory

    The factory for producing the executor who will do the work.

    TimeSpan shutdownTimeout

    The graceful stop timeout period.

    Methods

    | Edit this page View Source

    ExecuteTask(IRunnable)

    Schedules the IRunnable to be executed.

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

    The asynchronous task we're going to run

    Overrides
    MessageDispatcher.ExecuteTask(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