Click or drag to resize
Akka.NETDispatcher Class
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 Hierarchy

Namespace:  Akka.Dispatch
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public class Dispatcher : MessageDispatcher

The Dispatcher type exposes the following members.

Constructors
  NameDescription
Public methodDispatcher
Used to create a default Dispatcher
Top
Properties
  NameDescription
Public propertyConfigurator
The configurator used to configure this message dispatcher.
(Inherited from MessageDispatcher.)
Public propertyEventStream
The EventStream for this dispatcher's actor system
(Inherited from MessageDispatcher.)
Public propertyId
The ID for this dispatcher.
(Inherited from MessageDispatcher.)
Protected propertyInhabitants
The number of actors attached to this MessageDispatcher
(Inherited from MessageDispatcher.)
Public propertyMailboxes
The list of available Mailboxes for this dispatcher's actor system
(Inherited from MessageDispatcher.)
Public propertyShutdownTimeout
INTERNAL API When the dispatcher no longer has any actors registered, the ShutdownTimeout determines how long it will wait until it shuts itself down, defaulting to your Akka.NET config's 'akka.actor.default-dispatcher.shutdown-timeout' or the system default specified.
(Inherited from MessageDispatcher.)
Public propertyThroughput
Gets or sets the throughput.
(Inherited from MessageDispatcher.)
Public propertyThroughputDeadlineTime
Gets or sets the throughput deadline time.
(Inherited from MessageDispatcher.)
Top
Methods
  NameDescription
Public methodAttach
Attaches the dispatcher to the ActorCell
Remarks
Practically, doesn't do very much right now - dispatchers aren't responsible for creating mailboxes in Akka.NET
(Inherited from MessageDispatcher.)
Public methodDetach
Detaches the dispatcher to the ActorCell
Remarks
Only really used in dispatchers with 1:1 relationship with dispatcher.
(Inherited from MessageDispatcher.)
Public methodDispatch
Dispatches a user-defined message from a mailbox to an ActorCell
(Inherited from MessageDispatcher.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodExecuteTask
Schedules the IRunnable to be executed.
(Overrides MessageDispatcherExecuteTask(IRunnable).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodReportFailure
Publish failure that occurred while inside the running MessageDispatcher to the EventStream.
(Inherited from MessageDispatcher.)
Public methodSchedule(Action)
Schedules the specified delegate.
(Inherited from MessageDispatcher.)
Public methodSchedule(IRunnable)
Schedules an arbitrary task to run.
(Inherited from MessageDispatcher.)
Protected methodShutdown
INTERNAL API Called one time every time an actor is detached from this dispatcher and this dispatcher has no actors left attached
(Overrides MessageDispatcherShutdown.)
Public methodSystemDispatch
Dispatches a SystemMessage from a mailbox to an ActorCell
(Inherited from MessageDispatcher.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also