public interface EventProcessingConfiguration
| Modifier and Type | Method and Description |
|---|---|
default Optional<EnqueuePolicy<EventMessage<?>>> |
deadLetterPolicy(String processingGroup)
|
default Optional<SequencedDeadLetterQueue<EventMessage<?>>> |
deadLetterQueue(String processingGroup)
|
ErrorHandler |
errorHandler(String processorName)
Returns the
ErrorHandler tied to the given processorName. |
default <T extends EventProcessor> |
eventProcessor(String name)
Obtains an
EventProcessor through the given name. |
default <T extends EventProcessor> |
eventProcessor(String name,
Class<T> expectedType)
|
<T extends EventProcessor> |
eventProcessorByProcessingGroup(String processingGroup)
Obtains an
EventProcessor by it's processingGroup. |
default <T extends EventProcessor> |
eventProcessorByProcessingGroup(String processingGroup,
Class<T> expectedType)
|
Map<String,EventProcessor> |
eventProcessors()
Obtains all registered
EventProcessors. |
List<MessageHandlerInterceptor<? super EventMessage<?>>> |
interceptorsFor(String processorName)
|
ListenerInvocationErrorHandler |
listenerInvocationErrorHandler(String processingGroup)
Returns the
ListenerInvocationErrorHandler tied to the given processingGroup. |
MessageMonitor<? super Message<?>> |
messageMonitor(Class<?> componentType,
String componentName)
Returns the
MessageMonitor set to the given componentType and componentName registered
within this configuration. |
RollbackConfiguration |
rollbackConfiguration(String processorName)
Returns the
RollbackConfiguration tied to the given processorName. |
default <T> SagaConfiguration<T> |
sagaConfiguration(Class<T> sagaType)
Returns the
SagaConfiguration for the given sagaType. |
List<SagaConfiguration<?>> |
sagaConfigurations()
Returns a
List of SagaConfigurations registered within this configuration. |
default <T extends EventProcessor> |
sagaEventProcessor(Class<?> sagaType)
Obtains an Saga
EventProcessor implementation for the given sagaType. |
String |
sagaProcessingGroup(Class<?> sagaType)
Gets the processing group for given
sagaType. |
SagaStore |
sagaStore()
Returns a
SagaStore registered within this configuration. |
default Optional<SequencedDeadLetterProcessor<EventMessage<?>>> |
sequencedDeadLetterProcessor(String processingGroup)
|
SequencingPolicy<? super EventMessage<?>> |
sequencingPolicy(String processingGroup)
Returns the
SequencingPolicy tied to the given processingGroup. |
TokenStore |
tokenStore(String processorName)
Returns the
TokenStore tied to the given processorName. |
TransactionManager |
transactionManager(String processorName)
Returns the
TransactionManager tied to the given processorName. |
default <T extends EventProcessor> Optional<T> eventProcessor(String name)
EventProcessor through the given name.T - the type of the expected EventProcessorname - a String specifying the name of an EventProcessorOptional specifying whether an EventProcessor with the given name existsdefault <T extends EventProcessor> Optional<T> sagaEventProcessor(Class<?> sagaType)
EventProcessor implementation for the given sagaType.T - the type of the expected EventProcessorsagaType - the type of Saga for which to get the Event ProcessorOptional specifying whether an EventProcessor for the given SagaConfiguration
existsdefault <T extends EventProcessor> Optional<T> eventProcessor(String name, Class<T> expectedType)
T - the type of the expected EventProcessorname - a String specifying the name of the EventProcessor to returnexpectedType - the type of the EventProcessor to returnOptional referencing the EventProcessor, if present and of expected type<T extends EventProcessor> Optional<T> eventProcessorByProcessingGroup(String processingGroup)
EventProcessor by it's processingGroup.T - the type of the expected EventProcessorprocessingGroup - a String specifying the processing group of an EventProcessorOptional referencing the EventProcessordefault <T extends EventProcessor> Optional<T> eventProcessorByProcessingGroup(String processingGroup, Class<T> expectedType)
T - the type of the expected EventProcessorprocessingGroup - a String specifying the processing group of an EventProcessorexpectedType - the type of the EventProcessor to returnOptional referencing the EventProcessor, if present and of expected typeMap<String,EventProcessor> eventProcessors()
EventProcessors.Map of registered EventProcessors within this configuration with the processor names as
keysString sagaProcessingGroup(Class<?> sagaType)
sagaType.sagaType - the type of SagaList<MessageHandlerInterceptor<? super EventMessage<?>>> interceptorsFor(String processorName)
processorName - a String specifying a processing groupList of MessageHandlerInterceptors for a processor with given processorNameListenerInvocationErrorHandler listenerInvocationErrorHandler(String processingGroup)
ListenerInvocationErrorHandler tied to the given processingGroup.processingGroup - a String specifying a processing groupListenerInvocationErrorHandler belonging to the given processingGroupSequencingPolicy<? super EventMessage<?>> sequencingPolicy(String processingGroup)
SequencingPolicy tied to the given processingGroup.processingGroup - a String specifying a processing groupSequencingPolicy belonging to the given processingGroupRollbackConfiguration rollbackConfiguration(String processorName)
RollbackConfiguration tied to the given processorName.processorName - a String specifying a processing groupRollbackConfiguration belonging to the given processorNameErrorHandler errorHandler(String processorName)
ErrorHandler tied to the given processorName.processorName - a String specifying a processing groupErrorHandler belonging to the given processorNameSagaStore sagaStore()
SagaStore registered within this configuration.SagaStore registered within this configurationList<SagaConfiguration<?>> sagaConfigurations()
List of SagaConfigurations registered within this configuration.List of SagaConfigurations registered within this configurationdefault <T> SagaConfiguration<T> sagaConfiguration(Class<T> sagaType)
SagaConfiguration for the given sagaType. If no configuration has been provided for a
Saga of this type, null is returned.T - the type of SagasagaType - the type of Saga to return the configuration for.null if not foundMessageMonitor<? super Message<?>> messageMonitor(Class<?> componentType, String componentName)
MessageMonitor set to the given componentType and componentName registered
within this configuration.componentType - a Class type of component to be monitoredcomponentName - a String specifying the name of the component to be monitoredMessageMonitor registered to the given componentType and componentNameTokenStore tokenStore(String processorName)
TokenStore tied to the given processorName.processorName - a String specifying a event processorTokenStore belonging to the given processorNameTransactionManager transactionManager(String processorName)
TransactionManager tied to the given processorName.processorName - a String specifying a processing groupTransactionManagerbelonging to the given processorNamedefault Optional<SequencedDeadLetterQueue<EventMessage<?>>> deadLetterQueue(@Nonnull String processingGroup)
SequencedDeadLetterQueue tied to the given processingGroup in an Optional.
May return an empty optional when there's no SequencedDeadLetterQueue present
for the given processingGroup.processingGroup - The name of the processing group for which to return a SequencedDeadLetterQueue.SequencedDeadLetterQueue tied to the given processingGroup, Optional.empty()
if there is none.default Optional<EnqueuePolicy<EventMessage<?>>> deadLetterPolicy(@Nonnull String processingGroup)
dead letter policy tied to the given processingGroup in an
Optional. May return an Optional containing the
default policy if present.processingGroup - The name of the processing group for which to return an EnqueuePolicy.EnqueuePolicy belonging to the given processingGroup.default Optional<SequencedDeadLetterProcessor<EventMessage<?>>> sequencedDeadLetterProcessor(@Nonnull String processingGroup)
SequencedDeadLetterProcessor tied to the given processingGroup in an
Optional. Returns an empty optional when the processingGroup does not
have a SequencedDeadLetterQueue attached to it.processingGroup - The name of the processing group for which to return an EnqueuePolicy.SequencedDeadLetterProcessor tied to the given processingGroup in an
Optional, Optional.empty() if there is none.Copyright © 2010–2023. All rights reserved.