public class PeekMailbox extends java.lang.Object implements UnboundedQueueBasedMessageQueue
Constructor and Description |
---|
PeekMailbox(ActorRef owner,
ActorSystem system,
int maxRetries) |
Modifier and Type | Method and Description |
---|---|
void |
ack() |
void |
cleanUp(ActorRef owner,
MessageQueue deadLetters)
Called when the mailbox this queue belongs to is disposed of.
|
Envelope |
dequeue()
Try to dequeue the next message from this queue, return null failing that.
|
int |
Marker() |
java.util.concurrent.ConcurrentLinkedQueue<Envelope> |
queue() |
int |
tries() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enqueue
hasMessages, numberOfMessages
public PeekMailbox(ActorRef owner, ActorSystem system, int maxRetries)
public final java.util.concurrent.ConcurrentLinkedQueue<Envelope> queue()
queue
in interface QueueBasedMessageQueue
public int tries()
public int Marker()
public Envelope dequeue()
MessageQueue
dequeue
in interface MessageQueue
dequeue
in interface UnboundedQueueBasedMessageQueue
public void ack()
public void cleanUp(ActorRef owner, MessageQueue deadLetters)
MessageQueue
cleanUp
in interface MessageQueue
cleanUp
in interface QueueBasedMessageQueue
owner
- (undocumented)deadLetters
- (undocumented)