public static class UnboundedStablePriorityMailbox.MessageQueue extends StablePriorityBlockingQueue<Envelope> implements UnboundedQueueBasedMessageQueue
PriorityQueueStabilizer.WrappedElement<E>, PriorityQueueStabilizer.WrappedElementComparator<E>
Constructor and Description |
---|
MessageQueue(int initialCapacity,
java.util.Comparator<Envelope> cmp) |
Modifier and Type | Method and Description |
---|---|
java.util.Queue<Envelope> |
queue() |
backingQueue, seqNum
contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dequeue, enqueue
cleanUp, hasMessages, numberOfMessages
iterator, offer, peek, poll, size
public MessageQueue(int initialCapacity, java.util.Comparator<Envelope> cmp)
public final java.util.Queue<Envelope> queue()
queue
in interface QueueBasedMessageQueue