akka.dispatch
Interface BoundedMessageQueueSemantics

All Superinterfaces:
MessageQueue, QueueBasedMessageQueue

public interface BoundedMessageQueueSemantics
extends QueueBasedMessageQueue

BoundedMessageQueueSemantics adds bounded semantics to a QueueBasedMessageQueue, i.e. blocking enqueue with timeout


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.
 scala.concurrent.duration.Duration pushTimeOut()
           
 java.util.concurrent.BlockingQueue<Envelope> queue()
           
 
Methods inherited from interface akka.dispatch.QueueBasedMessageQueue
cleanUp, hasMessages, numberOfMessages
 

Method Detail

pushTimeOut

scala.concurrent.duration.Duration pushTimeOut()

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

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