Class Mailboxes
Contains the directory of all MailboxTypes registered and configured with a given ActorSystem.
Inherited Members
Namespace: Akka.Dispatch
Assembly: Akka.dll
Syntax
public class Mailboxes
Constructors
| Improve this Doc View SourceMailboxes(ActorSystem)
Initializes a new instance of the Mailboxes class.
Declaration
public Mailboxes(ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | The system. |
Fields
| Improve this Doc View SourceDefaultMailboxId
TBD
Declaration
public static readonly string DefaultMailboxId
Field Value
Type | Description |
---|---|
String |
NoMailboxRequirement
TBD
Declaration
public static readonly string NoMailboxRequirement
Field Value
Type | Description |
---|---|
String |
Properties
| Improve this Doc View SourceDeadLetterMailbox
TBD
Declaration
public DeadLetterMailbox DeadLetterMailbox { get; }
Property Value
Type | Description |
---|---|
Akka.Actor.DeadLetterMailbox |
Methods
| Improve this Doc View SourceGetMailboxType(Props, Config)
TBD
Declaration
public MailboxType GetMailboxType(Props props, Config dispatcherConfig)
Parameters
Type | Name | Description |
---|---|---|
Props | props | TBD |
Config | dispatcherConfig | TBD |
Returns
Type | Description |
---|---|
MailboxType | TBD |
Exceptions
Type | Condition |
---|---|
ArgumentException | This exception is thrown if the 'mailbox-requirement' in the given |
GetRequiredType(Type)
TBD
Declaration
public Type GetRequiredType(Type actorType)
Parameters
Type | Name | Description |
---|---|---|
Type | actorType | TBD |
Returns
Type | Description |
---|---|
Type | TBD |
HasRequiredType(Type)
Check if this actor class can have a required message queue type.
Declaration
public bool HasRequiredType(Type actorType)
Parameters
Type | Name | Description |
---|---|---|
Type | actorType | The type to check. |
Returns
Type | Description |
---|---|
Boolean |
|
Lookup(String)
Returns a MailboxType as specified in configuration, based on the id, or if not defined null.
Declaration
public MailboxType Lookup(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | The ID of the mailbox to lookup |
Returns
Type | Description |
---|---|
MailboxType | The MailboxType specified in configuration or if not defined null. |
Exceptions
Type | Condition |
---|---|
ConfigurationException | This exception is thrown if the mailbox type is not configured or the system could not load or find the type specified. |
ArgumentException | This exception is thrown if the mailbox type could not be instantiated. |
LookupByQueueType(Type)
Returns a MailboxType as specified in configuration, based on the type, or if not defined null.
Declaration
public MailboxType LookupByQueueType(Type queueType)
Parameters
Type | Name | Description |
---|---|---|
Type | queueType | The mailbox we need given the queue requirements. |
Returns
Type | Description |
---|---|
MailboxType | A MailboxType as specified in configuration, based on the type, or if not defined null. |
Exceptions
Type | Condition |
---|---|
ConfigurationException | This exception is thrown if a mapping is not configured for the given |
ProducesMessageQueue(Type)
Check if this MailboxType implements the IProducesMessageQueue<TQueue> interface.
Declaration
public bool ProducesMessageQueue(Type mailboxType)
Parameters
Type | Name | Description |
---|---|---|
Type | mailboxType | The type of the MailboxType to check. |
Returns
Type | Description |
---|---|
Boolean |
|