Package org.apache.pekko.actor.typed
Class MailboxSelector
java.lang.Object
org.apache.pekko.actor.typed.Props
org.apache.pekko.actor.typed.MailboxSelector
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
- Direct Known Subclasses:
PropsImpl.BoundedMailboxSelector,PropsImpl.DefaultMailboxSelector,PropsImpl.MailboxFromConfigSelector
Not for user extension.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MailboxSelectorbounded(int capacity) A mailbox with a max capacity after which new messages are dropped (passed to deadletters).static MailboxSelectorJava API: The default mailbox is SingleConsumerOnlyUnboundedMailboxstatic MailboxSelectorfromConfig(String path) Select a mailbox from the config file using an absolute config path.Methods inherited from class org.apache.pekko.actor.typed.Props
empty, withDispatcherDefault, withDispatcherFromConfig, withDispatcherSameAsParent, withMailboxFromConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
MailboxSelector
public MailboxSelector()
-
-
Method Details
-
defaultMailbox
Java API: The default mailbox is SingleConsumerOnlyUnboundedMailbox -
bounded
A mailbox with a max capacity after which new messages are dropped (passed to deadletters).- Parameters:
capacity- The maximum number of messages in the mailbox before new messages are dropped
-
fromConfig
Select a mailbox from the config file using an absolute config path.This is a power user settings default or bounded should be preferred unless you know what you are doing.
-