Package akka.actor.typed
Class MailboxSelector
- java.lang.Object
-
- akka.actor.typed.Props
-
- akka.actor.typed.MailboxSelector
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Direct Known Subclasses:
PropsImpl.BoundedMailboxSelector
,PropsImpl.DefaultMailboxSelector
,PropsImpl.MailboxFromConfigSelector
public abstract class MailboxSelector extends Props
Not for user extension.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MailboxSelector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MailboxSelector
bounded(int capacity)
A mailbox with a max capacity after which new messages are dropped (passed to deadletters).static MailboxSelector
defaultMailbox()
Java API: The default mailbox is SingleConsumerOnlyUnboundedMailboxstatic MailboxSelector
fromConfig(java.lang.String path)
Select a mailbox from the config file using an absolute config path.-
Methods inherited from class akka.actor.typed.Props
empty, withDispatcherDefault, withDispatcherFromConfig, withDispatcherSameAsParent, withMailboxFromConfig
-
-
-
-
Method Detail
-
defaultMailbox
public static MailboxSelector defaultMailbox()
Java API: The default mailbox is SingleConsumerOnlyUnboundedMailbox
-
bounded
public static MailboxSelector bounded(int capacity)
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
public static MailboxSelector fromConfig(java.lang.String path)
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.
-
-