C# Класс Akka.Dispatch.MessageDispatcher

Class responsible for pushing messages from an actor's mailbox into its receive methods. Comes in many different flavors.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
MessageDispatcher ( MessageDispatcherConfigurator configurator ) : System

Initializes a new instance of the MessageDispatcher class.

Описание методов

Attach() публичный Метод

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.
Результат void

Detach() публичный Метод

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.
Результат void

Dispatch() публичный Метод

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
Результат void

MessageDispatcher() защищенный Метод

Initializes a new instance of the MessageDispatcher class.
protected MessageDispatcher ( MessageDispatcherConfigurator configurator ) : System
configurator MessageDispatcherConfigurator
Результат System

Schedule() публичный абстрактный Метод

Schedules the specified run.
public abstract Schedule ( System.Action run ) : void
run System.Action The run.
Результат void

SystemDispatch() публичный Метод

Dispatches a ISystemMessage from a mailbox to an ActorCell
public SystemDispatch ( ActorCell cell, Envelope envelope ) : void
cell Akka.Actor.ActorCell
envelope Akka.Actor.Envelope
Результат void