@Override @Deprecated public <T extends EventProcessor> T eventProcessor() { ensureInitialized(); //noinspection unchecked return (T) config.eventProcessingConfiguration() .sagaEventProcessor(configurer.type) .orElseThrow(() -> new IllegalStateException(format( "Saga %s does not have a processor configured.", configurer.type))); }
@Override @Deprecated public <T extends EventProcessor> T eventProcessor() { ensureInitialized(); //noinspection unchecked return (T) config.eventProcessingConfiguration() .sagaEventProcessor(configurer.type) .orElseThrow(() -> new IllegalStateException(format( "Saga %s does not have a processor configured.", configurer.type))); }
@Override public ListenerInvocationErrorHandler listenerInvocationErrorHandler() { ensureInitialized(); return config.eventProcessingConfiguration() .listenerInvocationErrorHandler(processingGroup()); }
@Override public SagaStore<? super S> store() { ensureInitialized(); return store.get(); }
@Override public SagaRepository<S> repository() { ensureInitialized(); return repository.get(); }
@Override public AbstractSagaManager<S> manager() { ensureInitialized(); return manager.get(); }
@Override public String processingGroup() { ensureInitialized(); return config.eventProcessingConfiguration() .sagaProcessingGroup(configurer.type); }
@Override public SagaStore<? super S> store() { ensureInitialized(); return store.get(); }
@Override public AbstractSagaManager<S> manager() { ensureInitialized(); return manager.get(); }
@Override public String processingGroup() { ensureInitialized(); return config.eventProcessingConfiguration() .sagaProcessingGroup(configurer.type); }
@Override public SagaRepository<S> repository() { ensureInitialized(); return repository.get(); }
@Override public ListenerInvocationErrorHandler listenerInvocationErrorHandler() { ensureInitialized(); return config.eventProcessingConfiguration() .listenerInvocationErrorHandler(processingGroup()); }