Class MailboxType
A factory to create IMessageQueues for an optionally provided IActorContext.
Inheritance
Inherited Members
Namespace: Akka.Dispatch
Assembly: Akka.dll
Syntax
public abstract class MailboxType
Remarks
Possibly important notice.
When implementing a custom MailboxType, be aware that there is special semantics attached to ActorOf(Props, String) in that sending the returned IActorRef may, for a short period of time, enqueue the messages first in a dummy queue. Top-level actors are created in two steps, and only after the guardian actor ahs performed that second step will all previously sent messages be transferred from the dummy queue to the real mailbox.
Implemented as an abstract class in order to enforce constructor requirements.
Constructors
| Improve this Doc View SourceMailboxType(Settings, Config)
Constructor used for creating a MailboxType
Declaration
protected MailboxType(Settings settings, Config config)
Parameters
Type | Name | Description |
---|---|---|
Settings | settings | The Settings for this system. |
Config | config | The Config for this mailbox. |
Fields
| Improve this Doc View SourceConfig
The configuration for this mailbox.
Declaration
protected readonly Config Config
Field Value
Type | Description |
---|---|
Config |
Settings
The settings for the given ActorSystem.
Declaration
protected readonly Settings Settings
Field Value
Type | Description |
---|---|
Settings |
Methods
| Improve this Doc View SourceCreate(IActorRef, ActorSystem)
Creates a new IMessageQueue from the specified parameters.
Declaration
public abstract IMessageQueue Create(IActorRef owner, ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | owner | Optional. |
ActorSystem | system | Optional. |
Returns
Type | Description |
---|---|
IMessageQueue | The resulting IMessageQueue |