Package akka.remote.routing

Examples of akka.remote.routing.RemoteRouterConfig


    Address[] workerAddress = workerAddressMap.values().toArray(
        addressNodes);

    // update the workerRouter actor with the information on all workers
    workerRouterActor = getContext().system().actorOf(
        new Props(WorkerActor.class).withRouter(new RemoteRouterConfig(
            new RoundRobinRouter(workerAddress.length),
            workerAddress)));

  }
View Full Code Here


      Address[] workerAddress = workerAddressMap.values().toArray(
          addressNodes);

      workerRouterActor = getContext().system().actorOf(
          new Props(WorkerActor.class)
              .withRouter(new RemoteRouterConfig(
                  new RoundRobinRouter(workerAddress.length),
                  workerAddress)));
    } else
      workerRouterActor = null;
View Full Code Here

    //#remoteRoutees
    Address[] addresses = {
      new Address("akka.tcp", "remotesys", "otherhost", 1234),
      AddressFromURIString.parse("akka.tcp://othersys@anotherhost:1234")};
    ActorRef routerRemote = system.actorOf(
      new RemoteRouterConfig(new RoundRobinPool(5), addresses).props(
        Props.create(Echo.class)));
    //#remoteRoutees
  }
View Full Code Here

TOP

Related Classes of akka.remote.routing.RemoteRouterConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.