C# Class Akka.Dispatch.MessageDispatcher

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
MessageDispatcher ( MessageDispatcherConfigurator configurator ) : System

Initializes a new instance of the MessageDispatcher class.

Method Details

Attach() public méthode

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.
Résultat void

Detach() public méthode

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.
Résultat void

Dispatch() public méthode

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
Résultat void

MessageDispatcher() protected méthode

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

Schedule() public abstract méthode

Schedules the specified run.
public abstract Schedule ( System.Action run ) : void
run System.Action The run.
Résultat void

SystemDispatch() public méthode

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