@Override public String sagaProcessingGroup(Class<?> sagaType) { return selectProcessingGroupByType(sagaType); } //</editor-fold>
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()); }); }
.findFirst() .orElse(defaultInstanceSelector.select(handler) .orElse(selectProcessingGroupByType( handler.getClass()))); assignments.computeIfAbsent(processingGroup, k -> new ArrayList<>())
@Override public String sagaProcessingGroup(Class<?> sagaType) { return selectProcessingGroupByType(sagaType); } //</editor-fold>
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()); }); }
.findFirst() .orElse(defaultInstanceSelector.select(handler) .orElse(selectProcessingGroupByType( handler.getClass()))); assignments.computeIfAbsent(processingGroup, k -> new ArrayList<>())