akka.dispatch
Class SingleConsumerOnlyUnboundedMailbox

java.lang.Object
  extended by akka.dispatch.SingleConsumerOnlyUnboundedMailbox
All Implemented Interfaces:
MailboxType, ProducesMessageQueue<NodeMessageQueue>, java.io.Serializable, scala.Equals, scala.Product

public class SingleConsumerOnlyUnboundedMailbox
extends java.lang.Object
implements MailboxType, ProducesMessageQueue<NodeMessageQueue>, scala.Product, scala.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.

See Also:
Serialized Form

Constructor Summary
SingleConsumerOnlyUnboundedMailbox()
           
SingleConsumerOnlyUnboundedMailbox(ActorSystem.Settings settings, com.typesafe.config.Config config)
           
 
Method Summary
 MessageQueue create(scala.Option<ActorRef> owner, scala.Option<ActorSystem> system)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

SingleConsumerOnlyUnboundedMailbox

public SingleConsumerOnlyUnboundedMailbox()

SingleConsumerOnlyUnboundedMailbox

public SingleConsumerOnlyUnboundedMailbox(ActorSystem.Settings settings,
                                          com.typesafe.config.Config config)
Method Detail

create

public final MessageQueue create(scala.Option<ActorRef> owner,
                                 scala.Option<ActorSystem> system)
Specified by:
create in interface MailboxType