Removing mailboxIsEmpty and mailboxSize from MessageDispatcher

This commit is contained in:
Viktor Klang 2011-12-27 14:43:37 +01:00
parent ca96cb3973
commit 8db3f6aa0a
5 changed files with 7 additions and 21 deletions

View file

@ -257,16 +257,6 @@ abstract class MessageDispatcher(val prerequisites: DispatcherPrerequisites) ext
* Must be idempotent
*/
protected[akka] def shutdown(): Unit
/**
* Returns the size of the mailbox for the specified actor
*/
def mailboxSize(actor: ActorCell): Int = actor.mailbox.numberOfMessages
/**
* Returns the "current" emptiness status of the mailbox for the specified actor
*/
def mailboxIsEmpty(actor: ActorCell): Boolean = !actor.mailbox.hasMessages
}
/**