Search in sources :

Example 1 with RemoteGroupingHandler

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);
    }
}
Also used : LocalGroupingHandler(org.apache.activemq.artemis.core.server.group.impl.LocalGroupingHandler) LocalGroupingHandler(org.apache.activemq.artemis.core.server.group.impl.LocalGroupingHandler) RemoteGroupingHandler(org.apache.activemq.artemis.core.server.group.impl.RemoteGroupingHandler) GroupingHandler(org.apache.activemq.artemis.core.server.group.GroupingHandler) RemoteGroupingHandler(org.apache.activemq.artemis.core.server.group.impl.RemoteGroupingHandler)

Aggregations

GroupingHandler (org.apache.activemq.artemis.core.server.group.GroupingHandler)1 LocalGroupingHandler (org.apache.activemq.artemis.core.server.group.impl.LocalGroupingHandler)1 RemoteGroupingHandler (org.apache.activemq.artemis.core.server.group.impl.RemoteGroupingHandler)1