move ask machinery from ActorRefProvider to pattern.AskSupport

- now everything is assembled in one spot
- also moved PromiseActorRef and AskTimeoutException from akka.actor
- plus a little boy-scouting
This commit is contained in:
Roland 2012-01-18 11:52:35 +01:00
parent 2bed2cb954
commit 00ec3f89dc
11 changed files with 226 additions and 163 deletions

View file

@ -39,6 +39,11 @@ class RemoteActorRefProvider(
def terminationFuture = local.terminationFuture
def dispatcher = local.dispatcher
def registerTempActor(actorRef: InternalActorRef, path: ActorPath) = local.registerTempActor(actorRef, path)
def unregisterTempActor(path: ActorPath) = local.unregisterTempActor(path)
def tempPath() = local.tempPath()
def tempContainer = local.tempContainer
val deployer = new RemoteDeployer(settings)
val remote = new Remote(settings, remoteSettings)
@ -138,8 +143,6 @@ class RemoteActorRefProvider(
def actorFor(ref: InternalActorRef, path: Iterable[String]): InternalActorRef = local.actorFor(ref, path)
def ask(within: Timeout): Option[PromiseActorRef] = local.ask(within)
/**
* Using (checking out) actor on a specific node.
*/