DOC: how to change default mailbox, see #3483

This commit is contained in:
Patrik Nordwall 2013-07-04 11:39:53 +02:00
parent a6129e7d31
commit 3676d73779
2 changed files with 32 additions and 1 deletions

View file

@ -79,6 +79,22 @@ dispatcher which will execute it. Then the mailbox is determined as follows:
6. The default mailbox ``akka.actor.default-mailbox`` will be used.
Default Mailbox
---------------
When the mailbox is not specified as described above the default mailbox
is used. By default it is an unbounded mailbox, which is backed by a
``java.util.concurrent.ConcurrentLinkedQueue``.
``SingleConsumerOnlyUnboundedMailbox`` is an even more efficient mailbox, and
it can be used as the default mailbox, but it cannot be used with a BalancingDispatcher.
Configuration of ``SingleConsumerOnlyUnboundedMailbox`` as default mailbox::
akka.actor.default-mailbox {
mailbox-type = "akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
}
Which Configuration is passed to the Mailbox Type
-------------------------------------------------
@ -179,7 +195,6 @@ configuration, or the mailbox configuration.
this mailbox type; the mailbox type will be instantiated once for each
dispatcher or mailbox setting using it.
Special Semantics of ``system.actorOf``
=======================================