I am looking into BroadcastGroup routing. The following is mentioned in the documentation, that one can create a list of worker actors and the message could be broadcasted to all of them.
List<String> paths = Arrays.asList("/user/workers/w1", "/user/workers/w2", "/user/workers/w3"); ActorRef router16 = getContext().actorOf(new BroadcastGroup(paths).props(), "router16");
My question is, if the paths List is dynamically appended at runtime, does akka automatically adjust the routee list and the messages will start going to the new routees that are appended to paths?
Or is it a requirement that all the routees should be known before the router16 is created?