Adding support for mailboxIsEmpty on MessageDispatcher and removing getMailboxSize and mailboxSize from ActorRef, use actorref.dispatcher.mailboxSize(actorref) and actorref.dispatcher.mailboxIsEmpty(actorref)

This commit is contained in:
Viktor Klang 2011-06-07 13:23:24 -05:00
parent ed5ac01d72
commit 417fcc779d
6 changed files with 14 additions and 15 deletions

View file

@ -235,6 +235,11 @@ trait MessageDispatcher {
*/
def mailboxSize(actorRef: ActorRef): Int
/**
* Returns the "current" emptiness status of the mailbox for the specified actor
*/
def mailboxIsEmpty(actorRef: ActorRef): Boolean
/**
* Returns the amount of futures queued for execution
*/