Class MailboxSelector$

java.lang.Object
org.apache.pekko.actor.typed.MailboxSelector$
All Implemented Interfaces:
Serializable

public class MailboxSelector$ extends Object implements Serializable
See Also:
  • Field Details

    • MODULE$

      public static final MailboxSelector$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • MailboxSelector$

      public MailboxSelector$()
  • Method Details

    • defaultMailbox

      public MailboxSelector defaultMailbox()
      Java API: The default mailbox is SingleConsumerOnlyUnboundedMailbox
    • bounded

      public 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 MailboxSelector fromConfig(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.