public class UnboundedStablePriorityMailbox extends java.lang.Object implements MailboxType, ProducesMessageQueue<UnboundedStablePriorityMailbox.MessageQueue>
UnboundedPriorityMailbox
it preserves ordering for messages of equal priority.
Extend this class and provide the Comparator in the constructor.Modifier and Type | Class and Description |
---|---|
static class |
UnboundedStablePriorityMailbox.MessageQueue |
Constructor and Description |
---|
UnboundedStablePriorityMailbox(java.util.Comparator<Envelope> cmp) |
UnboundedStablePriorityMailbox(java.util.Comparator<Envelope> cmp,
int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<Envelope> |
cmp() |
MessageQueue |
create(scala.Option<ActorRef> owner,
scala.Option<ActorSystem> system) |
int |
initialCapacity() |
public UnboundedStablePriorityMailbox(java.util.Comparator<Envelope> cmp, int initialCapacity)
public UnboundedStablePriorityMailbox(java.util.Comparator<Envelope> cmp)
public java.util.Comparator<Envelope> cmp()
public int initialCapacity()
public final MessageQueue create(scala.Option<ActorRef> owner, scala.Option<ActorSystem> system)
create
in interface MailboxType