akka.dispatch
Interface BoundedQueueBasedMessageQueue

All Superinterfaces:
BoundedMessageQueueSemantics, MessageQueue, MultipleConsumerSemantics, QueueBasedMessageQueue
All Known Implementing Classes:
BoundedMailbox.MessageQueue, BoundedPriorityMailbox.MessageQueue

public interface BoundedQueueBasedMessageQueue
extends QueueBasedMessageQueue, BoundedMessageQueueSemantics


Method Summary
 Envelope dequeue()
          Try to dequeue the next message from this queue, return null failing that.
 void enqueue(ActorRef receiver, Envelope handle)
          Try to enqueue the message to this queue, or throw an exception.
 java.util.concurrent.BlockingQueue<Envelope> queue()
           
 
Methods inherited from interface akka.dispatch.QueueBasedMessageQueue
cleanUp, hasMessages, numberOfMessages
 
Methods inherited from interface akka.dispatch.BoundedMessageQueueSemantics
pushTimeOut
 

Method Detail

queue

java.util.concurrent.BlockingQueue<Envelope> queue()
Specified by:
queue in interface QueueBasedMessageQueue

enqueue

void enqueue(ActorRef receiver,
             Envelope handle)
Description copied from interface: MessageQueue
Try to enqueue the message to this queue, or throw an exception.

Specified by:
enqueue in interface MessageQueue
Parameters:
receiver - (undocumented)
handle - (undocumented)

dequeue

Envelope dequeue()
Description copied from interface: MessageQueue
Try to dequeue the next message from this queue, return null failing that.

Specified by:
dequeue in interface MessageQueue
Returns:
(undocumented)