C# Class Akka.Dispatch.MessageDispatcher

Class responsible for pushing messages from an actor's mailbox into its receive methods. Comes in many different flavors.
Mostrar archivo Open project: rogeralsing/akka.net Class Usage Examples

Public Methods

Method Description
Attach ( ActorCell cell ) : void

Attaches the dispatcher to the ActorCell Practically, doesn't do very much right now - dispatchers aren't responsible for creating mailboxes in Akka.NET

Detach ( ActorCell cell ) : void

Detaches the dispatcher to the ActorCell Only really used in dispatchers with 1:1 relationship with dispatcher.

Dispatch ( ActorCell cell, Envelope envelope ) : void

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

Schedule ( System.Action run ) : void

Schedules the specified run.

SystemDispatch ( ActorCell cell, Envelope envelope ) : void

Dispatches a ISystemMessage from a mailbox to an ActorCell

Protected Methods

Method Description
MessageDispatcher ( MessageDispatcherConfigurator configurator ) : System

Initializes a new instance of the MessageDispatcher class.

Method Details

Attach() public method

Attaches the dispatcher to the ActorCell Practically, doesn't do very much right now - dispatchers aren't responsible for creating mailboxes in Akka.NET
public Attach ( ActorCell cell ) : void
cell Akka.Actor.ActorCell The ActorCell belonging to the actor who's attaching to this dispatcher.
return void

Detach() public method

Detaches the dispatcher to the ActorCell Only really used in dispatchers with 1:1 relationship with dispatcher.
public Detach ( ActorCell cell ) : void
cell Akka.Actor.ActorCell The ActorCell belonging to the actor who's detaching from this dispatcher.
return void

Dispatch() public method

Dispatches a user-defined message from a mailbox to an ActorCell
public Dispatch ( ActorCell cell, Envelope envelope ) : void
cell Akka.Actor.ActorCell
envelope Akka.Actor.Envelope
return void

MessageDispatcher() protected method

Initializes a new instance of the MessageDispatcher class.
protected MessageDispatcher ( MessageDispatcherConfigurator configurator ) : System
configurator MessageDispatcherConfigurator
return System

Schedule() public abstract method

Schedules the specified run.
public abstract Schedule ( System.Action run ) : void
run System.Action The run.
return void

SystemDispatch() public method

Dispatches a ISystemMessage from a mailbox to an ActorCell
public SystemDispatch ( ActorCell cell, Envelope envelope ) : void
cell Akka.Actor.ActorCell
envelope Akka.Actor.Envelope
return void