public class CallingThreadMailbox extends Mailbox implements DefaultSystemMessageQueue
Constructor and Description |
---|
CallingThreadMailbox(Cell _receiver,
MailboxType mailboxType) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Overridable callback to clean up the mailbox,
called when an actor is unregistered.
|
java.util.concurrent.locks.ReentrantLock |
ctdLock() |
Envelope |
dequeue()
Try to dequeue the next message from this queue, return null failing that.
|
void |
enqueue(ActorRef receiver,
Envelope msg)
Try to enqueue the message to this queue, or throw an exception.
|
boolean |
hasMessages()
Indicates whether this queue is non-empty.
|
MailboxType |
mailboxType() |
MessageQueue |
messageQueue()
This is only a marker to be put in the messageQueue’s stead to make error
messages pertaining to violated mailbox type requirements less cryptic.
|
int |
numberOfMessages()
Should return the current number of messages held in this queue; may
always return 0 if no other value is available efficiently.
|
MessageQueue |
queue() |
ActorRef |
self() |
Switch |
suspendSwitch() |
ActorSystem |
system() |
_statusDoNotCallMeDirectly, _systemQueueDoNotCallMeDirectly, actor, becomeClosed, canBeScheduledForExecution, cancel, Closed, compareAndSetForkJoinTaskTag, complete, completeExceptionally, currentStatus, debug, dispatcher, doExec, exec, fork, get, get, getException, getForkJoinTaskTag, getRawResult, hasSystemMessages, internalPropagateException, internalWait, invoke, isCancelled, isClosed, isCompletedAbnormally, isCompletedNormally, isDone, isScheduled, isSuspended, join, Open, processAllSystemMessages, quietlyComplete, quietlyInvoke, quietlyJoin, recordExceptionalCompletion, reinitialize, resume, run, Scheduled, setActor, setAsIdle, setAsScheduled, setForkJoinTaskTag, setRawResult, setStatus, shouldNotProcessMask, shouldProcessMessage, shouldScheduleMask, suspend, suspendCount, suspendMask, suspendUnit, systemDrain, systemEnqueue, systemQueueGet, systemQueuePut, tryUnfork, updateStatus
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasSystemMessages, systemDrain, systemEnqueue
hasSystemMessages, systemDrain, systemEnqueue
public CallingThreadMailbox(Cell _receiver, MailboxType mailboxType)
public MailboxType mailboxType()
public ActorSystem system()
public ActorRef self()
public MessageQueue messageQueue()
messageQueue
in class Mailbox
public void enqueue(ActorRef receiver, Envelope msg)
Mailbox
public Envelope dequeue()
Mailbox
public boolean hasMessages()
Mailbox
hasMessages
in class Mailbox
public int numberOfMessages()
Mailbox
hasMessages
instead.numberOfMessages
in class Mailbox
public MessageQueue queue()
public java.util.concurrent.locks.ReentrantLock ctdLock()
public Switch suspendSwitch()
public void cleanUp()
Mailbox