| BoundedMailbox Constructor |
Namespace:
Akka.Dispatch
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public BoundedMailbox(
Settings settings,
Config config
)
new :
settings : Settings *
config : Config -> BoundedMailbox
Parameters
- settings
- Type: Akka.ActorSettings
[Missing <param name="settings"/> documentation for "M:Akka.Dispatch.BoundedMailbox.#ctor(Akka.Actor.Settings,Akka.Configuration.Config)"]
- config
- Type: Akka.ConfigurationConfig
[Missing <param name="config"/> documentation for "M:Akka.Dispatch.BoundedMailbox.#ctor(Akka.Actor.Settings,Akka.Configuration.Config)"]
Exceptions Exception | Condition |
---|
ArgumentException |
This exception is thrown if the 'mailbox-capacity' in config
or the 'mailbox-push-timeout-time' in config is negative.
|
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.
See Also