Package org.apache.pekko.dispatch
Class BoundedStablePriorityMailbox.MessageQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.apache.pekko.util.BoundedBlockingQueue<Envelope>
org.apache.pekko.dispatch.BoundedStablePriorityMailbox.MessageQueue
- All Implemented Interfaces:
Iterable<Envelope>,Collection<Envelope>,BlockingQueue<Envelope>,Queue<Envelope>,BoundedMessageQueueSemantics,BoundedQueueBasedMessageQueue,MessageQueue,MultipleConsumerSemantics,QueueBasedMessageQueue
- Enclosing class:
- BoundedStablePriorityMailbox
public static class BoundedStablePriorityMailbox.MessageQueue
extends BoundedBlockingQueue<Envelope>
implements BoundedQueueBasedMessageQueue
-
Constructor Summary
ConstructorsConstructorDescriptionMessageQueue(int capacity, Comparator<Envelope> cmp, scala.concurrent.duration.Duration pushTimeOut) -
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.duration.Durationfinal 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, toArrayMethods inherited from class java.util.AbstractQueue
add, addAll, element, removeMethods inherited from class java.util.AbstractCollection
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.BlockingQueue
addMethods inherited from interface org.apache.pekko.dispatch.BoundedQueueBasedMessageQueue
dequeue, enqueueMethods inherited from interface java.util.Collection
addAll, equals, hashCode, parallelStream, removeIf, spliterator, stream, toArrayMethods inherited from interface org.apache.pekko.dispatch.QueueBasedMessageQueue
cleanUp, hasMessages, numberOfMessages
-
Constructor Details
-
MessageQueue
public MessageQueue(int capacity, Comparator<Envelope> cmp, scala.concurrent.duration.Duration pushTimeOut)
-
-
Method Details
-
pushTimeOut
public scala.concurrent.duration.Duration pushTimeOut()- Specified by:
pushTimeOutin interfaceBoundedMessageQueueSemantics
-
queue
- Specified by:
queuein interfaceBoundedQueueBasedMessageQueue- Specified by:
queuein interfaceQueueBasedMessageQueue
-