=doc #18636 Correction of mailbox documentation

This commit is contained in:
Patrik Nordwall 2015-10-09 14:51:32 +02:00
parent aad2c4ca35
commit 49492cdfa6
2 changed files with 67 additions and 62 deletions

View file

@ -153,31 +153,45 @@ Akka comes shipped with a number of mailbox implementations:
- Bounded: No - Bounded: No
- Configuration name: "akka.dispatch.UnboundedControlAwareMailbox" - Configuration name: "akka.dispatch.UnboundedControlAwareMailbox"
Aditional implementations exist which can be potencially blocking on pushing into the queue,
however they can be configured using
* **BoundedMailbox**
- Backed by a ``java.util.concurrent.LinkedBlockingQueue``
- Blocking: Yes
- Bounded: Yes
- Configuration name: "bounded" or "akka.dispatch.BoundedMailbox"
* **UnboundedPriorityMailbox** * **UnboundedPriorityMailbox**
- Backed by a ``java.util.concurrent.PriorityBlockingQueue`` - Backed by a ``java.util.concurrent.PriorityBlockingQueue``
- Delivery order for messages of equal priority is undefined - contrast with the UnboundedStablePriorityMailbox - Delivery order for messages of equal priority is undefined - contrast with the UnboundedStablePriorityMailbox
- Blocking: Yes - Blocking: No
- Bounded: No - Bounded: No
- Configuration name: ``"akka.dispatch.UnboundedPriorityMailbox"`` - Configuration name: "akka.dispatch.UnboundedPriorityMailbox"
* **UnboundedStablePriorityMailbox**
- Backed by a ``java.util.concurrent.PriorityBlockingQueue`` wrapped in an ``akka.util.PriorityQueueStabilizer``
- FIFO order is preserved for messages of equal priority - contrast with the UnboundedPriorityMailbox
- Blocking: No
- Bounded: No
- Configuration name: "akka.dispatch.UnboundedStablePriorityMailbox"
Other bounded mailbox implementations which will block the sender if the capacity is reached and
configured with non-zero ``mailbox-push-timeout-time``.
.. note:: The following mailboxes should only be used with zero ``mailbox-push-timeout-time``.
* **BoundedMailbox**
- Backed by a ``java.util.concurrent.LinkedBlockingQueue``
- Blocking: Yes if used with non-zero ``mailbox-push-timeout-time``, otherwise No
- Bounded: Yes
- Configuration name: "bounded" or "akka.dispatch.BoundedMailbox"
* **BoundedPriorityMailbox** * **BoundedPriorityMailbox**
@ -185,35 +199,23 @@ however they can be configured using
- Delivery order for messages of equal priority is undefined - contrast with the ``BoundedStablePriorityMailbox`` - Delivery order for messages of equal priority is undefined - contrast with the ``BoundedStablePriorityMailbox``
- Blocking: Yes - Blocking: Yes if used with non-zero ``mailbox-push-timeout-time``, otherwise No
- Bounded: Yes - Bounded: Yes
- Configuration name: ``"akka.dispatch.BoundedPriorityMailbox"`` - Configuration name: ``"akka.dispatch.BoundedPriorityMailbox"``
* **UnboundedStablePriorityMailbox**
- Backed by a ``java.util.concurrent.PriorityBlockingQueue`` wrapped in an ``akka.util.PriorityQueueStabilizer``
- FIFO order is preserved for messages of equal priority - contrast with the UnboundedPriorityMailbox
- Blocking: Yes
- Bounded: No
- Configuration name: ``"akka.dispatch.UnboundedStablePriorityMailbox"``
* **BoundedStablePriorityMailbox** * **BoundedStablePriorityMailbox**
- Backed by a ``java.util.PriorityQueue`` wrapped in an ``akka.util.PriorityQueueStabilizer`` and an ``akka.util.BoundedBlockingQueue`` - Backed by a ``java.util.PriorityQueue`` wrapped in an ``akka.util.PriorityQueueStabilizer`` and an ``akka.util.BoundedBlockingQueue``
- FIFO order is preserved for messages of equal priority - contrast with the BoundedPriorityMailbox - FIFO order is preserved for messages of equal priority - contrast with the BoundedPriorityMailbox
- Blocking: Yes - Blocking: Yes if used with non-zero ``mailbox-push-timeout-time``, otherwise No
- Bounded: Yes - Bounded: Yes
- Configuration name: ``"akka.dispatch.BoundedStablePriorityMailbox"`` - Configuration name: "akka.dispatch.BoundedStablePriorityMailbox"
* **BoundedControlAwareMailbox** * **BoundedControlAwareMailbox**
@ -221,11 +223,11 @@ however they can be configured using
- Backed by two ``java.util.concurrent.ConcurrentLinkedQueue`` and blocking on enqueue if capacity has been reached - Backed by two ``java.util.concurrent.ConcurrentLinkedQueue`` and blocking on enqueue if capacity has been reached
- Blocking: Yes - Blocking: Yes if used with non-zero ``mailbox-push-timeout-time``, otherwise No
- Bounded: Yes - Bounded: Yes
- Configuration name: ``"akka.dispatch.BoundedControlAwareMailbox"`` - Configuration name: "akka.dispatch.BoundedControlAwareMailbox"
Mailbox configuration examples Mailbox configuration examples
============================== ==============================

View file

@ -153,30 +153,45 @@ Akka comes shipped with a number of mailbox implementations:
- Bounded: No - Bounded: No
- Configuration name: "akka.dispatch.UnboundedControlAwareMailbox" - Configuration name: "akka.dispatch.UnboundedControlAwareMailbox"
Previously available mailbox implementations which were deprecated because they might block:
* **BoundedMailbox**
- Backed by a ``java.util.concurrent.LinkedBlockingQueue``
- Blocking: Yes
- Bounded: Yes
- Configuration name: "bounded" or "akka.dispatch.BoundedMailbox"
* **UnboundedPriorityMailbox** * **UnboundedPriorityMailbox**
- Backed by a ``java.util.concurrent.PriorityBlockingQueue`` - Backed by a ``java.util.concurrent.PriorityBlockingQueue``
- Delivery order for messages of equal priority is undefined - contrast with the UnboundedStablePriorityMailbox - Delivery order for messages of equal priority is undefined - contrast with the UnboundedStablePriorityMailbox
- Blocking: Yes - Blocking: No
- Bounded: No - Bounded: No
- Configuration name: "akka.dispatch.UnboundedPriorityMailbox" - Configuration name: "akka.dispatch.UnboundedPriorityMailbox"
* **UnboundedStablePriorityMailbox**
- Backed by a ``java.util.concurrent.PriorityBlockingQueue`` wrapped in an ``akka.util.PriorityQueueStabilizer``
- FIFO order is preserved for messages of equal priority - contrast with the UnboundedPriorityMailbox
- Blocking: No
- Bounded: No
- Configuration name: "akka.dispatch.UnboundedStablePriorityMailbox"
Other bounded mailbox implementations which will block the sender if the capacity is reached and
configured with non-zero ``mailbox-push-timeout-time``.
.. note:: The following mailboxes should only be used with zero ``mailbox-push-timeout-time``.
* **BoundedMailbox**
- Backed by a ``java.util.concurrent.LinkedBlockingQueue``
- Blocking: Yes if used with non-zero ``mailbox-push-timeout-time``, otherwise No
- Bounded: Yes
- Configuration name: "bounded" or "akka.dispatch.BoundedMailbox"
* **BoundedPriorityMailbox** * **BoundedPriorityMailbox**
@ -184,31 +199,19 @@ Previously available mailbox implementations which were deprecated because they
- Delivery order for messages of equal priority is undefined - contrast with the ``BoundedStablePriorityMailbox`` - Delivery order for messages of equal priority is undefined - contrast with the ``BoundedStablePriorityMailbox``
- Blocking: Yes - Blocking: Yes if used with non-zero ``mailbox-push-timeout-time``, otherwise No
- Bounded: Yes - Bounded: Yes
- Configuration name: ``"akka.dispatch.BoundedPriorityMailbox"`` - Configuration name: ``"akka.dispatch.BoundedPriorityMailbox"``
* **UnboundedStablePriorityMailbox**
- Backed by a ``java.util.concurrent.PriorityBlockingQueue`` wrapped in an ``akka.util.PriorityQueueStabilizer``
- FIFO order is preserved for messages of equal priority - contrast with the UnboundedPriorityMailbox
- Blocking: Yes
- Bounded: No
- Configuration name: "akka.dispatch.UnboundedStablePriorityMailbox"
* **BoundedStablePriorityMailbox** * **BoundedStablePriorityMailbox**
- Backed by a ``java.util.PriorityQueue`` wrapped in an ``akka.util.PriorityQueueStabilizer`` and an ``akka.util.BoundedBlockingQueue`` - Backed by a ``java.util.PriorityQueue`` wrapped in an ``akka.util.PriorityQueueStabilizer`` and an ``akka.util.BoundedBlockingQueue``
- FIFO order is preserved for messages of equal priority - contrast with the BoundedPriorityMailbox - FIFO order is preserved for messages of equal priority - contrast with the BoundedPriorityMailbox
- Blocking: Yes - Blocking: Yes if used with non-zero ``mailbox-push-timeout-time``, otherwise No
- Bounded: Yes - Bounded: Yes
@ -220,7 +223,7 @@ Previously available mailbox implementations which were deprecated because they
- Backed by two ``java.util.concurrent.ConcurrentLinkedQueue`` and blocking on enqueue if capacity has been reached - Backed by two ``java.util.concurrent.ConcurrentLinkedQueue`` and blocking on enqueue if capacity has been reached
- Blocking: Yes - Blocking: Yes if used with non-zero ``mailbox-push-timeout-time``, otherwise No
- Bounded: Yes - Bounded: Yes