Package org.apache.pekko.dispatch
Class NonBlockingBoundedMailbox
java.lang.Object
org.apache.pekko.dispatch.NonBlockingBoundedMailbox
- All Implemented Interfaces:
Serializable,MailboxType,ProducesMessageQueue<BoundedNodeMessageQueue>,scala.Equals,scala.Product
public class NonBlockingBoundedMailbox
extends Object
implements MailboxType, ProducesMessageQueue<BoundedNodeMessageQueue>, scala.Product, Serializable
NonBlockingBoundedMailbox is a high-performance, multiple-producer single-consumer, bounded MailboxType,
Noteworthy is that it discards overflow as DeadLetters.
It can't have multiple consumers, which rules out using it with BalancingPool (BalancingDispatcher) for instance.
NOTE: NonBlockingBoundedMailbox does not use mailbox-push-timeout-time as it is non-blocking.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNonBlockingBoundedMailbox(int capacity) NonBlockingBoundedMailbox(ActorSystem.Settings settings, com.typesafe.config.Config config) -
Method Summary
Modifier and TypeMethodDescriptionstatic NonBlockingBoundedMailboxapply(int capacity) booleanintcapacity()copy(int capacity) intfinal MessageQueuecreate(scala.Option<ActorRef> owner, scala.Option<ActorSystem> system) booleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()static scala.Option<Object>Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
NonBlockingBoundedMailbox
public NonBlockingBoundedMailbox(int capacity) -
NonBlockingBoundedMailbox
-
-
Method Details
-
apply
-
unapply
-
capacity
public int capacity() -
create
- Specified by:
createin interfaceMailboxType
-
copy
-
copy$default$1
public int copy$default$1() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-