return factory.setColumn(conf[2]).setPattern(conf[3]).createRouter();
} else if (DIRECT.equalsIgnoreCase(conf[0])) {
RouterFactory factory = new RouterFactory(DIRECT) {
@Override
public Router onCreateRouter(String column, String pattern, int partitions) {
return new DirectRouter(column, pattern);
}
};
return factory.setColumn(conf[2]).setPattern(conf[3]).createRouter();
} else if (ROUND.equalsIgnoreCase(conf[0])) {
RouterFactory factory = new RouterFactory(ROUND) {