public static class BoundedControlAwareMailbox.MessageQueue extends java.lang.Object implements BoundedControlAwareMessageQueueSemantics
| Constructor and Description |
|---|
MessageQueue(int capacity,
scala.concurrent.duration.FiniteDuration pushTimeOut) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
java.util.concurrent.ConcurrentLinkedQueue<Envelope> |
controlQueue() |
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.
|
boolean |
hasMessages()
Indicates whether this queue is non-empty.
|
int |
numberOfMessages()
Should return the current number of messages held in this queue; may
always return 0 if no other value is available efficiently.
|
scala.concurrent.duration.FiniteDuration |
pushTimeOut() |
java.util.concurrent.ConcurrentLinkedQueue<Envelope> |
queue() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanUppublic MessageQueue(int capacity,
scala.concurrent.duration.FiniteDuration pushTimeOut)
public int capacity()
public scala.concurrent.duration.FiniteDuration pushTimeOut()
pushTimeOut in interface BoundedMessageQueueSemanticspublic java.util.concurrent.ConcurrentLinkedQueue<Envelope> controlQueue()
controlQueue in interface ControlAwareMessageQueueSemanticspublic java.util.concurrent.ConcurrentLinkedQueue<Envelope> queue()
queue in interface ControlAwareMessageQueueSemanticsqueue in interface QueueBasedMessageQueuepublic void enqueue(ActorRef receiver, Envelope handle)
MessageQueueenqueue in interface ControlAwareMessageQueueSemanticsenqueue in interface MessageQueuereceiver - (undocumented)handle - (undocumented)public int numberOfMessages()
MessageQueuehasMessages instead.numberOfMessages in interface ControlAwareMessageQueueSemanticsnumberOfMessages in interface MessageQueuenumberOfMessages in interface QueueBasedMessageQueuepublic boolean hasMessages()
MessageQueuehasMessages in interface ControlAwareMessageQueueSemanticshasMessages in interface MessageQueuehasMessages in interface QueueBasedMessageQueuepublic final Envelope dequeue()
MessageQueuedequeue in interface ControlAwareMessageQueueSemanticsdequeue in interface MessageQueue