private void registerSagaManagers(Map<String, List<Function<Configuration, EventHandlerInvoker>>> handlerInvokers) { sagaConfigurations.forEach(sc -> { SagaConfiguration<?> sagaConfig = sc.initialize(configuration); String processingGroup = selectProcessingGroupByType(sagaConfig.type()); String processorName = processorNameForProcessingGroup(processingGroup); handlerInvokers.computeIfAbsent(processorName, k -> new ArrayList<>()) .add(c -> sagaConfig.manager()); }); }
private void registerSagaManagers(Map<String, List<Function<Configuration, EventHandlerInvoker>>> handlerInvokers) { sagaConfigurations.forEach(sc -> { SagaConfiguration<?> sagaConfig = sc.initialize(configuration); String processingGroup = selectProcessingGroupByType(sagaConfig.type()); String processorName = processorNameForProcessingGroup(processingGroup); handlerInvokers.computeIfAbsent(processorName, k -> new ArrayList<>()) .add(c -> sagaConfig.manager()); }); }