/** * Sets the map of executor configurations, mapped by config name. * The config name may be a pattern with which the configuration will be * obtained in the future. * * @param executorConfigs the executor configuration map to set * @return this config instance */ public Config setExecutorConfigs(Map<String, ExecutorConfig> executorConfigs) { this.executorConfigs.clear(); this.executorConfigs.putAll(executorConfigs); for (Entry<String, ExecutorConfig> entry : executorConfigs.entrySet()) { entry.getValue().setName(entry.getKey()); } return this; }
/** * Sets the map of executor configurations, mapped by config name. * The config name may be a pattern with which the configuration will be * obtained in the future. * * @param executorConfigs the executor configuration map to set * @return this config instance */ public Config setExecutorConfigs(Map<String, ExecutorConfig> executorConfigs) { this.executorConfigs.clear(); this.executorConfigs.putAll(executorConfigs); for (Entry<String, ExecutorConfig> entry : executorConfigs.entrySet()) { entry.getValue().setName(entry.getKey()); } return this; }
.setName(taskDistributorName) .setPoolSize(1) );