Class Mailbox
Mailbox base class
Inherited Members
Namespace: Akka.Dispatch
Assembly: Akka.dll
Syntax
public class Mailbox : IRunnable, IThreadPoolWorkItem
Constructors
| Edit this page 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
| Edit this page 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
| Edit this page 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, params 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 |
Execute()
Executes the work item on the thread pool.
Declaration
public void Execute()
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 |
Edit this page