remove references to Remote* from akka-actor
- moved RemoteInterface.scala into akka-remote, not needed anymore since the plugin is loaded as ActorRefProvider now - removed some old unused imports - split out remote aspects from Deployer & DeployerSpec into RemoteDeployer & RemoteDeployerSpec (the latter in akka-remote) - created a ticket for cleaning up the rest, mostly remove all occurrences of “remote” and “cluster” from akka-actor in this way All of this was triggered by wanting to: - change the signature of RemoteSupport.send to require a RemoteActorRef recipient
This commit is contained in:
parent
9a74bcafb3
commit
25e23a3378
14 changed files with 294 additions and 171 deletions
|
|
@ -9,8 +9,6 @@ import akka.actor._
|
|||
import scala.annotation.tailrec
|
||||
|
||||
import java.util.concurrent.atomic.{ AtomicReference, AtomicInteger }
|
||||
import java.net.InetSocketAddress
|
||||
import akka.remote.RemoteAddress
|
||||
import collection.JavaConverters
|
||||
|
||||
/**
|
||||
|
|
@ -69,16 +67,6 @@ trait ConnectionManager {
|
|||
* @param ref the dead
|
||||
*/
|
||||
def remove(deadRef: ActorRef)
|
||||
|
||||
/**
|
||||
* Creates a new connection (ActorRef) if it didn't exist. Atomically.
|
||||
*/
|
||||
def putIfAbsent(address: RemoteAddress, newConnectionFactory: () ⇒ ActorRef): ActorRef
|
||||
|
||||
/**
|
||||
* Fails over connections from one address to another.
|
||||
*/
|
||||
def failOver(from: RemoteAddress, to: RemoteAddress)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -125,10 +113,4 @@ class LocalConnectionManager(initialConnections: Iterable[ActorRef]) extends Con
|
|||
if (!state.compareAndSet(oldState, newState)) remove(ref)
|
||||
}
|
||||
}
|
||||
|
||||
def failOver(from: RemoteAddress, to: RemoteAddress) {} // do nothing here
|
||||
|
||||
def putIfAbsent(address: RemoteAddress, newConnectionFactory: () ⇒ ActorRef): ActorRef = {
|
||||
throw new UnsupportedOperationException("Not supported")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue