Class Mailbox
Mailbox base class
Implements
Inherited Members
Namespace: Akka.Dispatch
Assembly: Akka.dll
Syntax
public class Mailbox : IRunnable
Constructors
| Improve this Doc View SourceMailbox(IMessageQueue)
Creates a new mailbox
Declaration
public Mailbox(IMessageQueue messageQueue)
Parameters
Type | Name | Description |
---|---|---|
IMessageQueue | messageQueue | The IMessageQueue used by this mailbox. |
Properties
| Improve this Doc View SourceDispatcher
The MessageDispatcher for the underlying mailbox.
Declaration
public MessageDispatcher Dispatcher { get; }
Property Value
Type | Description |
---|---|
MessageDispatcher |
MessageQueue
The queue used for user-defined messages inside this mailbox
Declaration
public IMessageQueue MessageQueue { get; }
Property Value
Type | Description |
---|---|
IMessageQueue |
Methods
| Improve this Doc View SourceCleanUp()
Overrideable callback to clean up the mailbox, called when an actor is unregistered.
By default it dequeues all system messages + messages and ships them to the owning actor's systems' Akka.Actor.DeadLetterMailbox.
Declaration
public virtual void CleanUp()
DebugPrint(String, Object[])
Prints a message tosStandard out if the Compile symbol "MAILBOXDEBUG" has been set. If the symbol is not set all invocations to this method will be removed by the compiler.
Declaration
[Conditional("MAILBOXDEBUG")]
public static void DebugPrint(string message, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
String | message | TBD |
Object[] | args | TBD |
Run()
Processes the contents of the mailbox
Declaration
public void Run()
SetActor(ActorCell)
Attaches an ActorCell to the Mailbox.
Declaration
public virtual void SetActor(ActorCell actorCell)
Parameters
Type | Name | Description |
---|---|---|
ActorCell | actorCell | TBD |