Package org.apache.pekko.dispatch
Class UnboundedStablePriorityMailbox
java.lang.Object
org.apache.pekko.dispatch.UnboundedStablePriorityMailbox
- All Implemented Interfaces:
MailboxType,ProducesMessageQueue<UnboundedStablePriorityMailbox.MessageQueue>
public class UnboundedStablePriorityMailbox
extends Object
implements MailboxType, ProducesMessageQueue<UnboundedStablePriorityMailbox.MessageQueue>
UnboundedStablePriorityMailbox is an unbounded mailbox that allows for prioritization of its contents. Unlike the
UnboundedPriorityMailbox 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
ConstructorsConstructorDescriptionUnboundedStablePriorityMailbox(Comparator<Envelope> cmp, int initialCapacity) -
Method Summary
Modifier and TypeMethodDescriptioncmp()final MessageQueuecreate(scala.Option<ActorRef> owner, scala.Option<ActorSystem> system) int
-
Constructor Details
-
UnboundedStablePriorityMailbox
-
UnboundedStablePriorityMailbox
-
-
Method Details
-
cmp
-
initialCapacity
public int initialCapacity() -
create
- Specified by:
createin interfaceMailboxType
-