Class MailboxConfig

  • All Implemented Interfaces:

    public class MailboxConfig
    extends java.lang.Object
    An actor mailbox configuration.
    See Also:
    Serialized Form
    • Constructor Detail

      • MailboxConfig

        public MailboxConfig​(int mailboxSize,
                             Channels.OverflowPolicy policy)
        Specifies a mailbox configuration with a given size and overflow policy.

        Note: The overflow policy is currently ignored. An mailbox overflow will result in an exception being thrown inside the actor by receive() regardless of policy.

        mailboxSize - The number of messages that can wait in the mailbox channel, with -1 specifying an unbounded mailbox.
        policy - Specifies what to do when the mailbox is full and a new message is added.
      • MailboxConfig

        public MailboxConfig()
        Specifies a default mailbox configuration - an unbounded mailbox.
    • Method Detail

      • getMailboxSize

        public int getMailboxSize()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object