SingleConsumerOnlyUnboundedMailbox

org.apache.pekko.dispatch.SingleConsumerOnlyUnboundedMailbox

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.

Attributes

Source
Mailbox.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MailboxType
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(settings: Settings, config: Config)

Attributes

Source
Mailbox.scala

Concrete methods

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

Attributes

Definition Classes
Source
Mailbox.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product