public interface EventProcessingConfiguration
| Modifier and Type | Method and Description |
|---|---|
default Optional<org.axonframework.messaging.deadletter.EnqueuePolicy<org.axonframework.eventhandling.EventMessage<?>>> |
deadLetterPolicy(String processingGroup)
|
default Optional<org.axonframework.messaging.deadletter.SequencedDeadLetterQueue<org.axonframework.eventhandling.EventMessage<?>>> |
deadLetterQueue(String processingGroup)
|
org.axonframework.eventhandling.ErrorHandler |
errorHandler(String processorName)
Returns the
ErrorHandler tied to the given processorName. |
default <T extends org.axonframework.eventhandling.EventProcessor> |
eventProcessor(String name)
Obtains an
EventProcessor through the given name. |
default <T extends org.axonframework.eventhandling.EventProcessor> |
eventProcessor(String name,
Class<T> expectedType)
Returns the
EventProcessor with the given name if present, matching the given expectedType. |
<T extends org.axonframework.eventhandling.EventProcessor> |
eventProcessorByProcessingGroup(String processingGroup)
Obtains an
EventProcessor by it's processingGroup. |
default <T extends org.axonframework.eventhandling.EventProcessor> |
eventProcessorByProcessingGroup(String processingGroup,
Class<T> expectedType)
Returns an
EventProcessor by the given processingGroup if present, matching the given expectedType. |
Map<String,org.axonframework.eventhandling.EventProcessor> |
eventProcessors()
Obtains all registered
EventProcessors. |
List<org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.eventhandling.EventMessage<?>>> |
interceptorsFor(String processorName)
|
org.axonframework.eventhandling.ListenerInvocationErrorHandler |
listenerInvocationErrorHandler(String processingGroup)
Returns the
ListenerInvocationErrorHandler tied to the given processingGroup. |
org.axonframework.monitoring.MessageMonitor<? super org.axonframework.messaging.Message<?>> |
messageMonitor(Class<?> componentType,
String componentName)
Returns the
MessageMonitor set to the given componentType and componentName registered
within this configuration. |
org.axonframework.messaging.unitofwork.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 org.axonframework.eventhandling.EventProcessor> |
sagaEventProcessor(Class<?> sagaType)
Obtains an Saga
EventProcessor implementation for the given sagaType. |
String |
sagaProcessingGroup(Class<?> sagaType)
Gets the processing group for given
sagaType. |
org.axonframework.modelling.saga.repository.SagaStore |
sagaStore()
Returns a
SagaStore registered within this configuration. |
default Optional<org.axonframework.messaging.deadletter.SequencedDeadLetterProcessor<org.axonframework.eventhandling.EventMessage<?>>> |
sequencedDeadLetterProcessor(String processingGroup)
|
org.axonframework.eventhandling.async.SequencingPolicy<? super org.axonframework.eventhandling.EventMessage<?>> |
sequencingPolicy(String processingGroup)
Returns the
SequencingPolicy tied to the given processingGroup. |
org.axonframework.eventhandling.tokenstore.TokenStore |
tokenStore(String processorName)
Returns the
TokenStore tied to the given processorName. |
org.axonframework.common.transaction.TransactionManager |
transactionManager(String processorName)
Returns the
TransactionManager tied to the given processorName. |
default <T extends org.axonframework.eventhandling.EventProcessor> Optional<T> eventProcessor(String name)
EventProcessor through the given name.default <T extends org.axonframework.eventhandling.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 org.axonframework.eventhandling.EventProcessor> Optional<T> eventProcessor(String name, Class<T> expectedType)
EventProcessor with the given name if present, matching the given expectedType.<T extends org.axonframework.eventhandling.EventProcessor> Optional<T> eventProcessorByProcessingGroup(String processingGroup)
EventProcessor by it's processingGroup.default <T extends org.axonframework.eventhandling.EventProcessor> Optional<T> eventProcessorByProcessingGroup(String processingGroup, Class<T> expectedType)
EventProcessor by the given processingGroup if present, matching the given expectedType.Map<String,org.axonframework.eventhandling.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<org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.eventhandling.EventMessage<?>>> interceptorsFor(String processorName)
org.axonframework.eventhandling.ListenerInvocationErrorHandler listenerInvocationErrorHandler(String processingGroup)
ListenerInvocationErrorHandler tied to the given processingGroup.processingGroup - a String specifying a processing groupListenerInvocationErrorHandler belonging to the given processingGrouporg.axonframework.eventhandling.async.SequencingPolicy<? super org.axonframework.eventhandling.EventMessage<?>> sequencingPolicy(String processingGroup)
SequencingPolicy tied to the given processingGroup.processingGroup - a String specifying a processing groupSequencingPolicy belonging to the given processingGrouporg.axonframework.messaging.unitofwork.RollbackConfiguration rollbackConfiguration(String processorName)
RollbackConfiguration tied to the given processorName.processorName - a String specifying a processing groupRollbackConfiguration belonging to the given processorNameorg.axonframework.eventhandling.ErrorHandler errorHandler(String processorName)
ErrorHandler tied to the given processorName.processorName - a String specifying a processing groupErrorHandler belonging to the given processorNameorg.axonframework.modelling.saga.repository.SagaStore 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 foundorg.axonframework.monitoring.MessageMonitor<? super org.axonframework.messaging.Message<?>> messageMonitor(Class<?> componentType, String componentName)
MessageMonitor set to the given componentType and componentName registered
within this configuration.org.axonframework.eventhandling.tokenstore.TokenStore tokenStore(String processorName)
TokenStore tied to the given processorName.processorName - a String specifying a event processorTokenStore belonging to the given processorNameorg.axonframework.common.transaction.TransactionManager transactionManager(String processorName)
TransactionManager tied to the given processorName.processorName - a String specifying a processing groupTransactionManagerbelonging to the given processorNamedefault Optional<org.axonframework.messaging.deadletter.SequencedDeadLetterQueue<org.axonframework.eventhandling.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<org.axonframework.messaging.deadletter.EnqueuePolicy<org.axonframework.eventhandling.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<org.axonframework.messaging.deadletter.SequencedDeadLetterProcessor<org.axonframework.eventhandling.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–2024. All rights reserved.