Rewrite of remote protocol to use the new ActorRef protocol

This commit is contained in:
Jonas Bonér 2010-05-07 11:19:19 +02:00
parent f951d2c3de
commit cb2e39cc97
18 changed files with 435 additions and 582 deletions

View file

@ -60,9 +60,9 @@ trait MessageDispatcher extends Logging {
def dispatch(invocation: MessageInvocation)
def start
def shutdown
def register(actorId: ActorRef) = references.put(actorId.uuid, actorId)
def unregister(actorId: ActorRef) = {
references.remove(actorId.uuid)
def register(actorRef: ActorRef) = references.put(actorRef.uuid, actorRef)
def unregister(actorRef: ActorRef) = {
references.remove(actorRef.uuid)
if (canBeShutDown)
shutdown // shut down in the dispatcher's references is zero
}