* @param args
* @throws InterruptedException
*/
public static void main(String[] args) throws InterruptedException {
ActorSystem _system = ActorSystem.create("RoundRobinRouterExample");
ActorRef roundRobinRouter = _system.actorOf(new Props(
MsgEchoActor.class).withRouter(new RoundRobinRouter(5)),"myRoundRobinRouterActor");
for (int i = 1; i <= 10; i++) {
//sends messages in a round robin way to all the actors
roundRobinRouter.tell(i);