Initial attempt at suspend/resume

This commit is contained in:
Viktor Klang 2010-10-11 16:11:51 +02:00
parent 3a9994bbe0
commit ae3768c266
8 changed files with 99 additions and 38 deletions

View file

@ -79,6 +79,9 @@ trait MessageDispatcher extends MailboxFactory with Logging {
if (canBeShutDown) shutdown // shut down in the dispatcher's references is zero
}
def suspend(actorRef: ActorRef): Unit
def resume(actorRef: ActorRef): Unit
def canBeShutDown: Boolean = uuids.isEmpty
def isShutdown: Boolean