Package org.apache.pekko.dispatch
Interface BoundedQueueBasedMessageQueue
- All Superinterfaces:
BoundedMessageQueueSemantics,MessageQueue,MultipleConsumerSemantics,QueueBasedMessageQueue
- All Known Implementing Classes:
BoundedMailbox.MessageQueue,BoundedPriorityMailbox.MessageQueue,BoundedStablePriorityMailbox.MessageQueue
public interface BoundedQueueBasedMessageQueue
extends QueueBasedMessageQueue, BoundedMessageQueueSemantics
-
Method Summary
Methods inherited from interface org.apache.pekko.dispatch.BoundedMessageQueueSemantics
pushTimeOutMethods inherited from interface org.apache.pekko.dispatch.QueueBasedMessageQueue
cleanUp, hasMessages, numberOfMessages
-
Method Details
-
dequeue
Envelope dequeue()Description copied from interface:MessageQueueTry to dequeue the next message from this queue, return null failing that.- Specified by:
dequeuein interfaceMessageQueue
-
enqueue
Description copied from interface:MessageQueueTry to enqueue the message to this queue, or throw an exception.- Specified by:
enqueuein interfaceMessageQueue
-
queue
BlockingQueue<Envelope> queue()- Specified by:
queuein interfaceQueueBasedMessageQueue
-