Refactored code into ActorRef, LocalActorRef and RemoteActorRef

This commit is contained in:
Jonas Bonér 2010-05-13 15:40:49 +02:00
parent b1d9897e22
commit 21e6085864
33 changed files with 806 additions and 443 deletions

View file

@ -17,7 +17,7 @@ import se.scalablesolutions.akka.actor.{Actor, ActorRef, ActorMessageInvoker}
class ThreadBasedDispatcher private[akka] (val name: String, val messageHandler: MessageInvoker)
extends MessageDispatcher {
def this(actor: Actor) = this(actor.getClass.getName, new ActorMessageInvoker(new ActorRef(() => actor)))
def this(actor: Actor) = this(actor.getClass.getName, new ActorMessageInvoker(Actor.newActor(() => actor)))
private val queue = new BlockingMessageQueue(name)
private var selectorThread: Thread = _