akka.dispatch
Class BoundedPriorityMailbox
java.lang.Object
akka.dispatch.BoundedPriorityMailbox
- All Implemented Interfaces:
- MailboxType
public class BoundedPriorityMailbox
- extends java.lang.Object
- implements MailboxType
BoundedPriorityMailbox is a bounded mailbox that allows for priorization of its contents.
Extend this class and provide the Comparator in the constructor.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundedPriorityMailbox
public BoundedPriorityMailbox(java.util.Comparator<Envelope> cmp,
int capacity,
scala.concurrent.duration.Duration pushTimeOut)
cmp
public final java.util.Comparator<Envelope> cmp()
capacity
public final int capacity()
pushTimeOut
public final scala.concurrent.duration.Duration pushTimeOut()
create
public final MessageQueue create(scala.Option<ActorRef> owner,
scala.Option<ActorSystem> system)
- Specified by:
create
in interface MailboxType