Package org.apache.pekko.dispatch
Class BoundedMailbox.MessageQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.LinkedBlockingQueue<Envelope>
org.apache.pekko.dispatch.BoundedMailbox.MessageQueue
- All Implemented Interfaces:
Serializable,Iterable<Envelope>,Collection<Envelope>,BlockingQueue<Envelope>,Queue<Envelope>,BoundedMessageQueueSemantics,BoundedQueueBasedMessageQueue,MessageQueue,MultipleConsumerSemantics,QueueBasedMessageQueue
- Enclosing class:
- BoundedMailbox
public static class BoundedMailbox.MessageQueue
extends LinkedBlockingQueue<Envelope>
implements BoundedQueueBasedMessageQueue
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMessageQueue(int capacity, scala.concurrent.duration.FiniteDuration pushTimeOut) -
Method Summary
Modifier and TypeMethodDescriptionfinal scala.concurrent.duration.FiniteDurationfinal BlockingQueue<Envelope>queue()Methods inherited from class java.util.concurrent.LinkedBlockingQueue
clear, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toStringMethods inherited from class java.util.AbstractQueue
add, addAll, element, removeMethods inherited from class java.util.AbstractCollection
containsAll, isEmptyMethods 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, containsAll, equals, hashCode, isEmpty, parallelStream, stream, toArrayMethods inherited from interface org.apache.pekko.dispatch.QueueBasedMessageQueue
cleanUp, hasMessages, numberOfMessages
-
Constructor Details
-
MessageQueue
public MessageQueue(int capacity, scala.concurrent.duration.FiniteDuration pushTimeOut)
-
-
Method Details
-
pushTimeOut
public final scala.concurrent.duration.FiniteDuration pushTimeOut()- Specified by:
pushTimeOutin interfaceBoundedMessageQueueSemantics
-
queue
- Specified by:
queuein interfaceBoundedQueueBasedMessageQueue- Specified by:
queuein interfaceQueueBasedMessageQueue
-