Major refactoring of RemoteActorRefProvider, remote Routing and FailureDetector, including lots of fixes and improvements.
- Decoupled FailureDetector from Routing by introducing ConnectionManager which uses FailureDetector instead of it being the same thing. - Added ConnectionManager - Added LocalConnectionManager - Added RemoteConnectionManager - Improved RoutedProps - Integrated and added configuration for Scatter Gather router - Added NoOpFailureDetector - Misc API and documentation improvements Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
This commit is contained in:
parent
78193d7a62
commit
4ec050c12e
23 changed files with 870 additions and 995 deletions
|
|
@ -8,7 +8,7 @@ import akka.actor.{ Actor, PoisonPill }
|
|||
import Actor._
|
||||
import java.util.concurrent.CountDownLatch
|
||||
import akka.routing.Routing.Broadcast
|
||||
import akka.routing.{ RoutedProps, Routing }
|
||||
import akka.routing._
|
||||
|
||||
object Pi extends App {
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ object Pi extends App {
|
|||
val workers = Vector.fill(nrOfWorkers)(actorOf[Worker])
|
||||
|
||||
// wrap them with a load-balancing router
|
||||
val router = Routing.actorOf(RoutedProps().withRoundRobinRouter.withConnections(workers), "pi")
|
||||
val router = Routing.actorOf(RoutedProps().withRoundRobinRouter.withLocalConnections(workers), "pi")
|
||||
|
||||
// message handler
|
||||
def receive = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue