Package akka.dispatch
Class BoundedPriorityMailbox.MessageQueue
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- akka.util.BoundedBlockingQueue<Envelope>
-
- akka.dispatch.BoundedPriorityMailbox.MessageQueue
-
- All Implemented Interfaces:
BoundedMessageQueueSemantics
,BoundedQueueBasedMessageQueue
,MessageQueue
,MultipleConsumerSemantics
,QueueBasedMessageQueue
,java.lang.Iterable<Envelope>
,java.util.Collection<Envelope>
,java.util.concurrent.BlockingQueue<Envelope>
,java.util.Queue<Envelope>
- 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 akka.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 akka.dispatch.BoundedQueueBasedMessageQueue
dequeue, enqueue
-
Methods inherited from interface java.util.Collection
addAll, equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Methods inherited from interface akka.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
-
-