Package akka.dispatch
Class BoundedStablePriorityMailbox
- java.lang.Object
-
- akka.dispatch.BoundedStablePriorityMailbox
-
- All Implemented Interfaces:
MailboxType,ProducesMessageQueue<BoundedStablePriorityMailbox.MessageQueue>,ProducesPushTimeoutSemanticsMailbox
public class BoundedStablePriorityMailbox extends java.lang.Object implements MailboxType, ProducesMessageQueue<BoundedStablePriorityMailbox.MessageQueue>, ProducesPushTimeoutSemanticsMailbox
BoundedStablePriorityMailbox is a bounded mailbox that allows for prioritization of its contents. Unlike theBoundedPriorityMailboxit preserves ordering for messages of equal priority. Extend this class and provide the Comparator in the constructor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBoundedStablePriorityMailbox.MessageQueue
-
Constructor Summary
Constructors Constructor Description BoundedStablePriorityMailbox(java.util.Comparator<Envelope> cmp, int capacity, scala.concurrent.duration.Duration pushTimeOut)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcapacity()java.util.Comparator<Envelope>cmp()MessageQueuecreate(scala.Option<ActorRef> owner, scala.Option<ActorSystem> system)scala.concurrent.duration.DurationpushTimeOut()
-
-
-
Constructor Detail
-
BoundedStablePriorityMailbox
public BoundedStablePriorityMailbox(java.util.Comparator<Envelope> cmp, int capacity, scala.concurrent.duration.Duration pushTimeOut)
-
-
Method Detail
-
cmp
public final java.util.Comparator<Envelope> cmp()
-
capacity
public final int capacity()
-
pushTimeOut
public final scala.concurrent.duration.Duration pushTimeOut()
- Specified by:
pushTimeOutin interfaceProducesPushTimeoutSemanticsMailbox
-
create
public final MessageQueue create(scala.Option<ActorRef> owner, scala.Option<ActorSystem> system)
- Specified by:
createin interfaceMailboxType
-
-