Formatting java codes with sbt-java-formatter.
This commit is contained in:
parent
27500001ea
commit
998c5a9285
401 changed files with 19750 additions and 17450 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
package jdocs.routing;
|
||||
|
||||
//#group
|
||||
// #group
|
||||
import java.util.List;
|
||||
|
||||
import akka.actor.ActorSystem;
|
||||
|
|
@ -19,17 +19,16 @@ import static jdocs.routing.CustomRouterDocTest.RedundancyRoutingLogic;
|
|||
public class RedundancyGroup extends GroupBase {
|
||||
private final List<String> paths;
|
||||
private final int nbrCopies;
|
||||
|
||||
|
||||
public RedundancyGroup(List<String> paths, int nbrCopies) {
|
||||
this.paths = paths;
|
||||
this.nbrCopies = nbrCopies;
|
||||
}
|
||||
|
||||
public RedundancyGroup(Config config) {
|
||||
this(config.getStringList("routees.paths"),
|
||||
config.getInt("nbr-copies"));
|
||||
this(config.getStringList("routees.paths"), config.getInt("nbr-copies"));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public java.lang.Iterable<String> getPaths(ActorSystem system) {
|
||||
return paths;
|
||||
|
|
@ -40,10 +39,9 @@ public class RedundancyGroup extends GroupBase {
|
|||
return new Router(new RedundancyRoutingLogic(nbrCopies));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public String routerDispatcher() {
|
||||
return Dispatchers.DefaultDispatcherId();
|
||||
}
|
||||
|
||||
}
|
||||
//#group
|
||||
// #group
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue