SingleConsumerOnlyUnboundedMailbox
org.apache.pekko.dispatch.SingleConsumerOnlyUnboundedMailbox
final case class SingleConsumerOnlyUnboundedMailbox() extends MailboxType, ProducesMessageQueue[NodeMessageQueue]
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 Serializabletrait Producttrait Equalstrait MailboxTypeclass Objecttrait Matchableclass Any
Members list
In this article