/** * Obtains an Saga {@link EventProcessor} implementation for the given {@code sagaType}. * * @param sagaType the type of Saga for which to get the Event Processor * @param <T> the type of the expected {@link EventProcessor} * @return an {@link Optional} specifying whether an {@link EventProcessor} for the given {@link SagaConfiguration} * exists */ default <T extends EventProcessor> Optional<T> sagaEventProcessor(Class<?> sagaType) { return eventProcessorByProcessingGroup(sagaProcessingGroup(sagaType)); }
@Override public String processingGroup() { ensureInitialized(); return config.eventProcessingConfiguration() .sagaProcessingGroup(configurer.type); }
/** * Obtains an Saga {@link EventProcessor} implementation for the given {@code sagaType}. * * @param sagaType the type of Saga for which to get the Event Processor * @param <T> the type of the expected {@link EventProcessor} * @return an {@link Optional} specifying whether an {@link EventProcessor} for the given {@link SagaConfiguration} * exists */ default <T extends EventProcessor> Optional<T> sagaEventProcessor(Class<?> sagaType) { return eventProcessorByProcessingGroup(sagaProcessingGroup(sagaType)); }
@Override public String processingGroup() { ensureInitialized(); return config.eventProcessingConfiguration() .sagaProcessingGroup(configurer.type); }