Package org.apache.pekko.dispatch
Class BoundedPriorityMailbox.MessageQueue
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- org.apache.pekko.util.BoundedBlockingQueue<Envelope>
-
- org.apache.pekko.dispatch.BoundedPriorityMailbox.MessageQueue
-
- All Implemented Interfaces:
java.lang.Iterable<Envelope>
,java.util.Collection<Envelope>
,java.util.concurrent.BlockingQueue<Envelope>
,java.util.Queue<Envelope>
,BoundedMessageQueueSemantics
,BoundedQueueBasedMessageQueue
,MessageQueue
,MultipleConsumerSemantics
,QueueBasedMessageQueue
- Enclosing class:
- BoundedPriorityMailbox
public static class BoundedPriorityMailbox.MessageQueue extends BoundedBlockingQueue<Envelope> implements BoundedQueueBasedMessageQueue
-
-
Constructor Summary
Constructors Constructor Description MessageQueue(int capacity, java.util.Comparator<Envelope> cmp, scala.concurrent.duration.Duration pushTimeOut)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.concurrent.duration.Duration
pushTimeOut()
java.util.concurrent.BlockingQueue<Envelope>
queue()
-
Methods inherited from class org.apache.pekko.util.BoundedBlockingQueue
clear, contains, containsAll, createLock, createNotEmptyCondition, createNotFullCondition, drainTo, drainTo, isEmpty, iterator, lock, maxCapacity, notEmpty, notFull, offer, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, retainAll, size, take, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pekko.dispatch.BoundedQueueBasedMessageQueue
dequeue, enqueue
-
Methods inherited from interface java.util.Collection
addAll, equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Methods inherited from interface org.apache.pekko.dispatch.QueueBasedMessageQueue
cleanUp, hasMessages, numberOfMessages
-
-
-
-
Constructor Detail
-
MessageQueue
public MessageQueue(int capacity, java.util.Comparator<Envelope> cmp, scala.concurrent.duration.Duration pushTimeOut)
-
-
Method Detail
-
pushTimeOut
public scala.concurrent.duration.Duration pushTimeOut()
- Specified by:
pushTimeOut
in interfaceBoundedMessageQueueSemantics
-
queue
public final java.util.concurrent.BlockingQueue<Envelope> queue()
- Specified by:
queue
in interfaceBoundedQueueBasedMessageQueue
- Specified by:
queue
in interfaceQueueBasedMessageQueue
-
-