use of org.apache.activemq.artemis.core.server.group.impl.RemoteGroupingHandler in project activemq-artemis by apache.
the class ActiveMQServerImpl method deployGroupingHandlerConfiguration.
private void deployGroupingHandlerConfiguration(final GroupingHandlerConfiguration config) throws Exception {
if (config != null) {
GroupingHandler groupingHandler1;
if (config.getType() == GroupingHandlerConfiguration.TYPE.LOCAL) {
groupingHandler1 = new LocalGroupingHandler(executorFactory, scheduledPool, managementService, config.getName(), config.getAddress(), getStorageManager(), config.getTimeout(), config.getGroupTimeout(), config.getReaperPeriod());
} else {
groupingHandler1 = new RemoteGroupingHandler(executorFactory, managementService, config.getName(), config.getAddress(), config.getTimeout(), config.getGroupTimeout());
}
this.groupingHandler = groupingHandler1;
managementService.addNotificationListener(groupingHandler1);
}
}
Aggregations