Package org.apache.pekko.dispatch
Class BoundedStablePriorityMailbox
java.lang.Object
org.apache.pekko.dispatch.BoundedStablePriorityMailbox
- All Implemented Interfaces:
MailboxType,ProducesMessageQueue<BoundedStablePriorityMailbox.MessageQueue>,ProducesPushTimeoutSemanticsMailbox
public class BoundedStablePriorityMailbox
extends Object
implements MailboxType, ProducesMessageQueue<BoundedStablePriorityMailbox.MessageQueue>, ProducesPushTimeoutSemanticsMailbox
BoundedStablePriorityMailbox is a bounded mailbox that allows for prioritization of its contents. Unlike the
BoundedPriorityMailbox it preserves ordering for messages of equal priority.
Extend this class and provide the Comparator in the constructor.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBoundedStablePriorityMailbox(Comparator<Envelope> cmp, int capacity, scala.concurrent.duration.Duration pushTimeOut) -
Method Summary
Modifier and TypeMethodDescriptionfinal intcapacity()final Comparator<Envelope>cmp()final MessageQueuecreate(scala.Option<ActorRef> owner, scala.Option<ActorSystem> system) final scala.concurrent.duration.Duration
-
Constructor Details
-
BoundedStablePriorityMailbox
public BoundedStablePriorityMailbox(Comparator<Envelope> cmp, int capacity, scala.concurrent.duration.Duration pushTimeOut)
-
-
Method Details
-
cmp
-
capacity
public final int capacity() -
pushTimeOut
public final scala.concurrent.duration.Duration pushTimeOut()- Specified by:
pushTimeOutin interfaceProducesPushTimeoutSemanticsMailbox
-
create
- Specified by:
createin interfaceMailboxType
-