Packages

c

akka.dispatch

SingleConsumerOnlyUnboundedMailbox

final case class SingleConsumerOnlyUnboundedMailbox() extends MailboxType with ProducesMessageQueue[NodeMessageQueue] with Product with Serializable

SingleConsumerOnlyUnboundedMailbox is a high-performance, multiple producer—single consumer, unbounded MailboxType, with the drawback that you can't have multiple consumers, which rules out using it with BalancingPool (BalancingDispatcher) for instance.

Currently this queue is slower for some benchmarks than the ConcurrentLinkedQueue from JDK 8 that is used by default, so be sure to measure the performance in your particular setting in order to determine which one to use.

Source
Mailbox.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SingleConsumerOnlyUnboundedMailbox
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ProducesMessageQueue
  7. MailboxType
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SingleConsumerOnlyUnboundedMailbox(settings: Settings, config: Config)
  2. new SingleConsumerOnlyUnboundedMailbox()

Value Members

  1. final def create(owner: Option[ActorRef], system: Option[ActorSystem]): MessageQueue