public class EventProcessingModule extends Object implements ModuleConfiguration, EventProcessingConfiguration, EventProcessingConfigurer
EventProcessingConfiguration
and takes care of module lifecycle.EventProcessingConfigurer.EventProcessorBuilder
Constructor and Description |
---|
EventProcessingModule() |
Modifier and Type | Method and Description |
---|---|
EventProcessingConfigurer |
assignHandlerInstancesMatching(String processingGroup,
int priority,
Predicate<Object> criteria)
Configures a rule to assign Event Handler beans that match the given
criteria to the Processing Group
with given name , with given priority . |
EventProcessingConfigurer |
assignHandlerTypesMatching(String processingGroup,
int priority,
Predicate<Class<?>> criteria)
Configures a rule to assign Event Handler beans that match the given
criteria to the Processing Group
with given name , with given priority . |
EventProcessingConfigurer |
assignProcessingGroup(Function<String,String> assignmentRule)
Defines a rule for assigning processing groups to processors if processing group to processor name mapping does
not contain the entry.
|
EventProcessingConfigurer |
assignProcessingGroup(String processingGroup,
String processorName)
Defines a mapping for assigning processing groups to processors.
|
EventProcessingConfigurer |
byDefaultAssignHandlerInstancesTo(Function<Object,String> assignmentFunction)
Registers a
Function that defines the Event Processing Group name to assign Event Handler beans to when
no other, more explicit, rule matches and no ProcessingGroup annotation is found. |
EventProcessingConfigurer |
byDefaultAssignHandlerTypesTo(Function<Class<?>,String> assignmentFunction)
Registers a
Function that defines the Event Processing Group name to assign Event Handler and Saga beans
to when no other, more explicit, rule matches and no ProcessingGroup annotation is found. |
ErrorHandler |
errorHandler(String componentName)
Returns the
ErrorHandler tied to the given processingGroup . |
<T extends EventProcessor> |
eventProcessorByProcessingGroup(String processingGroup)
Obtains an
EventProcessor by it's processingGroup . |
Map<String,EventProcessor> |
eventProcessors()
Obtains all registered
EventProcessor s. |
void |
initialize(Configuration configuration)
Initialize the module configuration using the given global
config |
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 eventProcessorName)
Returns the
MessageMonitor set to the given componentType and componentName registered
within this configuration. |
EventProcessingConfigurer |
registerDefaultErrorHandler(Function<Configuration,ErrorHandler> errorHandlerBuilder)
Registers a
Function that builds the default ErrorHandler . |
EventProcessingConfigurer |
registerDefaultHandlerInterceptor(BiFunction<Configuration,String,MessageHandlerInterceptor<? super EventMessage<?>>> interceptorBuilder)
Register the given
interceptorBuilder as a default to build a MessageHandlerInterceptor for
EventProcessor s created in this configuration. |
EventProcessingConfigurer |
registerDefaultListenerInvocationErrorHandler(Function<Configuration,ListenerInvocationErrorHandler> listenerInvocationErrorHandlerBuilder)
Registers a
Function that builds the default ListenerInvocationErrorHandler . |
EventProcessingConfigurer |
registerDefaultSequencingPolicy(Function<Configuration,SequencingPolicy<? super EventMessage<?>>> policyBuilder)
Registers the
SequencingPolicy created by given policyBuilder to the processing groups for which
no explicit policy is defined (using EventProcessingConfigurer.registerSequencingPolicy(String, Function) ). |
EventProcessingConfigurer |
registerErrorHandler(String eventProcessorName,
Function<Configuration,ErrorHandler> errorHandlerBuilder)
|
EventProcessingConfigurer |
registerEventHandler(Function<Configuration,Object> eventHandlerBuilder)
Registers a
Function that builds an Event Handler instance. |
EventProcessingConfigurer |
registerEventProcessor(String name,
EventProcessingConfigurer.EventProcessorBuilder eventProcessorBuilder)
Registers an
EventProcessingConfigurer.EventProcessorBuilder for the given processor name . |
EventProcessingConfigurer |
registerEventProcessorFactory(EventProcessingConfigurer.EventProcessorBuilder eventProcessorBuilder)
Registers a factory that builds the default
EventProcessor . |
EventProcessingConfigurer |
registerHandlerInterceptor(String processorName,
Function<Configuration,MessageHandlerInterceptor<? super EventMessage<?>>> interceptorBuilder)
Register the given
interceptorBuilder to build a MessageHandlerInterceptor for the
EventProcessor with given processorName . |
EventProcessingConfigurer |
registerListenerInvocationErrorHandler(String processingGroup,
Function<Configuration,ListenerInvocationErrorHandler> listenerInvocationErrorHandlerBuilder)
|
EventProcessingConfigurer |
registerMessageMonitorFactory(String eventProcessorName,
MessageMonitorFactory messageMonitorFactory)
|
EventProcessingConfigurer |
registerRollbackConfiguration(String name,
Function<Configuration,RollbackConfiguration> rollbackConfigurationBuilder)
|
<T> EventProcessingConfigurer |
registerSaga(Class<T> sagaType,
Consumer<SagaConfigurer<T>> sagaConfigurer)
Registers a Saga, allowing specific configuration to use for this Saga type.
|
EventProcessingConfigurer |
registerSagaStore(Function<Configuration,SagaStore> sagaStoreBuilder)
|
EventProcessingConfigurer |
registerSequencingPolicy(String processingGroup,
Function<Configuration,SequencingPolicy<? super EventMessage<?>>> policyBuilder)
Registers the
SequencingPolicy created by the given policyBuilder to the processing group with
given processingGroup . |
EventProcessingConfigurer |
registerSubscribingEventProcessor(String name,
Function<Configuration,SubscribableMessageSource<? extends EventMessage<?>>> messageSource)
|
EventProcessingConfigurer |
registerTokenStore(Function<Configuration,TokenStore> tokenStore)
Register a
Function that builds a TokenStore to use as the default in case no explicit token
store was configured for a processor. |
EventProcessingConfigurer |
registerTokenStore(String processingGroup,
Function<Configuration,TokenStore> tokenStore)
|
EventProcessingConfigurer |
registerTrackingEventProcessor(String name,
Function<Configuration,StreamableMessageSource<TrackedEventMessage<?>>> source)
|
EventProcessingConfigurer |
registerTrackingEventProcessor(String name,
Function<Configuration,StreamableMessageSource<TrackedEventMessage<?>>> source,
Function<Configuration,TrackingEventProcessorConfiguration> processorConfiguration)
Registers a
TrackingEventProcessor with given name , source and processorConfiguration within this Configurer. |
EventProcessingConfigurer |
registerTrackingEventProcessorConfiguration(Function<Configuration,TrackingEventProcessorConfiguration> trackingEventProcessorConfigurationBuilder)
Register a
Function that builds a TrackingEventProcessorConfiguration to use as the default. |
EventProcessingConfigurer |
registerTransactionManager(String name,
Function<Configuration,TransactionManager> transactionManagerBuilder)
|
RollbackConfiguration |
rollbackConfiguration(String componentName)
Returns the
RollbackConfiguration tied to the given processingGroup . |
List<SagaConfiguration<?>> |
sagaConfigurations()
Returns a
List of SagaConfiguration s registered within this configuration. |
String |
sagaProcessingGroup(Class<?> sagaType)
Gets the processing group for given
sagaType . |
SagaStore |
sagaStore()
Returns a
SagaStore registered within this configuration. |
SequencingPolicy<? super EventMessage<?>> |
sequencingPolicy(String processingGroup)
Returns the
SequencingPolicy tied to the given processingGroup . |
void |
shutdown()
Invoked prior to shutdown of the application.
|
void |
start()
Invoked when the Configuration is started.
|
TokenStore |
tokenStore(String processorName)
Returns the
TokenStore tied to the given processingGroup . |
TransactionManager |
transactionManager(String processingGroup)
Returns the
TransactionManager tied to the given processingGroup . |
EventProcessingConfigurer |
usingSubscribingEventProcessors()
Defaults Event Processors builders to use
SubscribingEventProcessor . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isType, phase, unwrap
eventProcessor, eventProcessor, eventProcessorByProcessingGroup, sagaConfiguration, sagaEventProcessor
assignHandlerInstancesMatching, assignHandlerTypesMatching, byDefaultAssignTo, registerMessageMonitor, registerSaga, registerSubscribingEventProcessor, registerTrackingEventProcessor
public void initialize(Configuration configuration)
ModuleConfiguration
config
initialize
in interface ModuleConfiguration
configuration
- the global configuration, providing access to generic componentspublic void start()
ModuleConfiguration
start
in interface ModuleConfiguration
Configuration.start()
public void shutdown()
ModuleConfiguration
shutdown
in interface ModuleConfiguration
Configuration.shutdown()
public <T extends EventProcessor> Optional<T> eventProcessorByProcessingGroup(String processingGroup)
EventProcessingConfiguration
EventProcessor
by it's processingGroup
.eventProcessorByProcessingGroup
in interface EventProcessingConfiguration
T
- the type of the expected EventProcessor
processingGroup
- a String
specifying the processing group of an EventProcessor
Optional
referencing the EventProcessor
public Map<String,EventProcessor> eventProcessors()
EventProcessingConfiguration
EventProcessor
s.eventProcessors
in interface EventProcessingConfiguration
Map
of registered EventProcessor
s within this configuration with the processor names as
keyspublic String sagaProcessingGroup(Class<?> sagaType)
EventProcessingConfiguration
sagaType
.sagaProcessingGroup
in interface EventProcessingConfiguration
sagaType
- the type of Sagapublic List<MessageHandlerInterceptor<? super EventMessage<?>>> interceptorsFor(String processorName)
EventProcessingConfiguration
interceptorsFor
in interface EventProcessingConfiguration
processorName
- a String
specifying a processing groupList
of MessageHandlerInterceptor
s for a processor with given processorName
public ListenerInvocationErrorHandler listenerInvocationErrorHandler(String processingGroup)
EventProcessingConfiguration
ListenerInvocationErrorHandler
tied to the given processingGroup
.listenerInvocationErrorHandler
in interface EventProcessingConfiguration
processingGroup
- a String
specifying a processing groupListenerInvocationErrorHandler
belonging to the given processingGroup
public SequencingPolicy<? super EventMessage<?>> sequencingPolicy(String processingGroup)
EventProcessingConfiguration
SequencingPolicy
tied to the given processingGroup
.sequencingPolicy
in interface EventProcessingConfiguration
processingGroup
- a String
specifying a processing groupSequencingPolicy
belonging to the given processingGroup
public RollbackConfiguration rollbackConfiguration(String componentName)
EventProcessingConfiguration
RollbackConfiguration
tied to the given processingGroup
.rollbackConfiguration
in interface EventProcessingConfiguration
componentName
- a String
specifying a processing groupRollbackConfiguration
belonging to the given processingGroup
public ErrorHandler errorHandler(String componentName)
EventProcessingConfiguration
ErrorHandler
tied to the given processingGroup
.errorHandler
in interface EventProcessingConfiguration
componentName
- a String
specifying a processing groupErrorHandler
belonging to the given processingGroup
public SagaStore sagaStore()
EventProcessingConfiguration
SagaStore
registered within this configuration.sagaStore
in interface EventProcessingConfiguration
SagaStore
registered within this configurationpublic List<SagaConfiguration<?>> sagaConfigurations()
EventProcessingConfiguration
List
of SagaConfiguration
s registered within this configuration.sagaConfigurations
in interface EventProcessingConfiguration
List
of SagaConfiguration
s registered within this configurationpublic MessageMonitor<? super Message<?>> messageMonitor(Class<?> componentType, String eventProcessorName)
EventProcessingConfiguration
MessageMonitor
set to the given componentType
and componentName
registered
within this configuration.messageMonitor
in interface EventProcessingConfiguration
componentType
- a Class
type of component to be monitoredeventProcessorName
- a String
specifying the name of the component to be monitoredMessageMonitor
registered to the given componentType
and componentName
public TokenStore tokenStore(String processorName)
EventProcessingConfiguration
TokenStore
tied to the given processingGroup
.tokenStore
in interface EventProcessingConfiguration
processorName
- a String
specifying a event processorTokenStore
belonging to the given processingGroup
public TransactionManager transactionManager(String processingGroup)
EventProcessingConfiguration
TransactionManager
tied to the given processingGroup
.transactionManager
in interface EventProcessingConfiguration
processingGroup
- a String
specifying a processing groupTransactionManager
belonging to the given processingGroup
public <T> EventProcessingConfigurer registerSaga(Class<T> sagaType, Consumer<SagaConfigurer<T>> sagaConfigurer)
EventProcessingConfigurer
registerSaga
in interface EventProcessingConfigurer
T
- The type of Saga to configuresagaType
- The type of Saga to configuresagaConfigurer
- a function providing modifications on top of the defaul configurationEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerSagaStore(Function<Configuration,SagaStore> sagaStoreBuilder)
EventProcessingConfigurer
registerSagaStore
in interface EventProcessingConfigurer
sagaStoreBuilder
- a Function
that builds a SagaStore
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerEventHandler(Function<Configuration,Object> eventHandlerBuilder)
EventProcessingConfigurer
Function
that builds an Event Handler instance.registerEventHandler
in interface EventProcessingConfigurer
eventHandlerBuilder
- a Function
that builds an Event Handler instanceEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerDefaultListenerInvocationErrorHandler(Function<Configuration,ListenerInvocationErrorHandler> listenerInvocationErrorHandlerBuilder)
EventProcessingConfigurer
Function
that builds the default ListenerInvocationErrorHandler
.
Defaults to a LoggingErrorHandler
.registerDefaultListenerInvocationErrorHandler
in interface EventProcessingConfigurer
listenerInvocationErrorHandlerBuilder
- a Function
that builds the default
ListenerInvocationErrorHandler
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerListenerInvocationErrorHandler(String processingGroup, Function<Configuration,ListenerInvocationErrorHandler> listenerInvocationErrorHandlerBuilder)
EventProcessingConfigurer
registerListenerInvocationErrorHandler
in interface EventProcessingConfigurer
processingGroup
- a String
specifying the name of a processing grouplistenerInvocationErrorHandlerBuilder
- a Function
that builds ListenerInvocationErrorHandler
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerTrackingEventProcessor(String name, Function<Configuration,StreamableMessageSource<TrackedEventMessage<?>>> source)
EventProcessingConfigurer
registerTrackingEventProcessor
in interface EventProcessingConfigurer
name
- a String
specifying the name of the TrackingEventProcessor
being registeredsource
- a Function
that builds a StreamableMessageSource
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerTrackingEventProcessor(String name, Function<Configuration,StreamableMessageSource<TrackedEventMessage<?>>> source, Function<Configuration,TrackingEventProcessorConfiguration> processorConfiguration)
EventProcessingConfigurer
TrackingEventProcessor
with given name
, source
and processorConfiguration
within this Configurer.registerTrackingEventProcessor
in interface EventProcessingConfigurer
name
- a String
specifying the name of the TrackingEventProcessor
being registeredsource
- a Function
that builds StreamableMessageSource
processorConfiguration
- a Function
that builds a TrackingEventProcessorConfiguration
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerEventProcessorFactory(EventProcessingConfigurer.EventProcessorBuilder eventProcessorBuilder)
EventProcessingConfigurer
EventProcessor
. This is the EventProcessingConfigurer.EventProcessorBuilder
to
be used when there is no specific builder for given processor name.registerEventProcessorFactory
in interface EventProcessingConfigurer
eventProcessorBuilder
- a Function
that builds an EventProcessor
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerEventProcessor(String name, EventProcessingConfigurer.EventProcessorBuilder eventProcessorBuilder)
EventProcessingConfigurer
EventProcessingConfigurer.EventProcessorBuilder
for the given processor name
.registerEventProcessor
in interface EventProcessingConfigurer
name
- a String
specifying the name of the EventProcessor
being registeredeventProcessorBuilder
- a Function
that builds an EventProcessor
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerTokenStore(String processingGroup, Function<Configuration,TokenStore> tokenStore)
EventProcessingConfigurer
registerTokenStore
in interface EventProcessingConfigurer
processingGroup
- a String
specifying the name of a event processortokenStore
- a Function
that builds a TokenStore
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerTokenStore(Function<Configuration,TokenStore> tokenStore)
EventProcessingConfigurer
Function
that builds a TokenStore
to use as the default in case no explicit token
store was configured for a processor.registerTokenStore
in interface EventProcessingConfigurer
tokenStore
- a Function
that builds a TokenStore
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer usingSubscribingEventProcessors()
EventProcessingConfigurer
SubscribingEventProcessor
.usingSubscribingEventProcessors
in interface EventProcessingConfigurer
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerSubscribingEventProcessor(String name, Function<Configuration,SubscribableMessageSource<? extends EventMessage<?>>> messageSource)
EventProcessingConfigurer
registerSubscribingEventProcessor
in interface EventProcessingConfigurer
name
- a String
specyfing the name of the SubscribingEventProcessor
being registeredmessageSource
- a Function
that builds a SubscribableMessageSource
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerDefaultErrorHandler(Function<Configuration,ErrorHandler> errorHandlerBuilder)
EventProcessingConfigurer
registerDefaultErrorHandler
in interface EventProcessingConfigurer
errorHandlerBuilder
- a Function
that builds an ErrorHandler
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerErrorHandler(String eventProcessorName, Function<Configuration,ErrorHandler> errorHandlerBuilder)
EventProcessingConfigurer
registerErrorHandler
in interface EventProcessingConfigurer
eventProcessorName
- a String
specifying the name of an EventProcessor
errorHandlerBuilder
- a Function
that builds an ErrorHandler
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer byDefaultAssignHandlerInstancesTo(Function<Object,String> assignmentFunction)
EventProcessingConfigurer
Function
that defines the Event Processing Group name to assign Event Handler beans to when
no other, more explicit, rule matches and no ProcessingGroup
annotation is found.byDefaultAssignHandlerInstancesTo
in interface EventProcessingConfigurer
assignmentFunction
- a Function
that returns the Processing Group for each Event Handler beanEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer byDefaultAssignHandlerTypesTo(Function<Class<?>,String> assignmentFunction)
EventProcessingConfigurer
Function
that defines the Event Processing Group name to assign Event Handler and Saga beans
to when no other, more explicit, rule matches and no ProcessingGroup
annotation is found.byDefaultAssignHandlerTypesTo
in interface EventProcessingConfigurer
assignmentFunction
- a Function
that returns the Processing Group for each Event Handler or Saga
beanEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer assignHandlerInstancesMatching(String processingGroup, int priority, Predicate<Object> criteria)
EventProcessingConfigurer
criteria
to the Processing Group
with given name
, with given priority
. Rules with higher value of priority
take precedence
over those with a lower value.
Note that, when beans match multiple criteria for different processing groups with equal priority, the outcome is undefined.
assignHandlerInstancesMatching
in interface EventProcessingConfigurer
processingGroup
- a String
specifying the name of a processing group to assign matching Event
Handlers topriority
- The priority for this rulecriteria
- a Predicate
defining the criteria for an Event Handler to matchEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer assignHandlerTypesMatching(String processingGroup, int priority, Predicate<Class<?>> criteria)
EventProcessingConfigurer
criteria
to the Processing Group
with given name
, with given priority
. Rules with higher value of priority
take precedence
over those with a lower value.
Note that, when beans match multiple criteria for different processing groups with equal priority, the outcome is undefined.
assignHandlerTypesMatching
in interface EventProcessingConfigurer
processingGroup
- a String
specifying the name of the Processing Group to assign matching Event
Handlers or Sagas topriority
- an int
specifying the priority of this rulecriteria
- a Predicate
defining the criteria for an Event Handler or Saga to matchEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer assignProcessingGroup(String processingGroup, String processorName)
EventProcessingConfigurer
assignProcessingGroup
in interface EventProcessingConfigurer
processingGroup
- a String
specifying the processing group to be assignedprocessorName
- a String
specifying the processor name to assign the group toEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer assignProcessingGroup(Function<String,String> assignmentRule)
EventProcessingConfigurer
assignProcessingGroup
in interface EventProcessingConfigurer
assignmentRule
- a Function
which takes a processing group and returns a processor nameEventProcessingConfigurer
instance, for fluent interfacingEventProcessingConfigurer.assignProcessingGroup(String, String)
public EventProcessingConfigurer registerHandlerInterceptor(String processorName, Function<Configuration,MessageHandlerInterceptor<? super EventMessage<?>>> interceptorBuilder)
EventProcessingConfigurer
interceptorBuilder
to build a MessageHandlerInterceptor
for the
EventProcessor
with given processorName
.
The interceptorBuilder
may return null
, in which case the return value is ignored.
registerHandlerInterceptor
in interface EventProcessingConfigurer
processorName
- a String
specyfing the name of the processor to register the
MessageHandlerInterceptor
oninterceptorBuilder
- a Function
providing the MessageHandlerInterceptor
to register, or
null
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerDefaultHandlerInterceptor(BiFunction<Configuration,String,MessageHandlerInterceptor<? super EventMessage<?>>> interceptorBuilder)
EventProcessingConfigurer
interceptorBuilder
as a default to build a MessageHandlerInterceptor
for
EventProcessor
s created in this configuration.
The interceptorBuilder
is invoked once for each processor created, and may return null
, in which
case the return value is ignored.
registerDefaultHandlerInterceptor
in interface EventProcessingConfigurer
interceptorBuilder
- a builder Function
that provides a MessageHandlerInterceptor
for each
available processorEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerSequencingPolicy(String processingGroup, Function<Configuration,SequencingPolicy<? super EventMessage<?>>> policyBuilder)
EventProcessingConfigurer
SequencingPolicy
created by the given policyBuilder
to the processing group with
given processingGroup
. Any previously configured policy for the same name will be overwritten.registerSequencingPolicy
in interface EventProcessingConfigurer
processingGroup
- a String
specifying the name of the processing group to assign the
SequencingPolicy
forpolicyBuilder
- a builder Function
to create the SequencingPolicy
to useEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerDefaultSequencingPolicy(Function<Configuration,SequencingPolicy<? super EventMessage<?>>> policyBuilder)
EventProcessingConfigurer
SequencingPolicy
created by given policyBuilder
to the processing groups for which
no explicit policy is defined (using EventProcessingConfigurer.registerSequencingPolicy(String, Function)
).
Defaults to a SequentialPerAggregatePolicy
.
registerDefaultSequencingPolicy
in interface EventProcessingConfigurer
policyBuilder
- a builder Function
to create the SequencingPolicy
to useEventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerMessageMonitorFactory(String eventProcessorName, MessageMonitorFactory messageMonitorFactory)
EventProcessingConfigurer
registerMessageMonitorFactory
in interface EventProcessingConfigurer
eventProcessorName
- a String
specifying the name of an EventProcessor
messageMonitorFactory
- a MessageMonitorFactory
used to create a MessageMonitor
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerRollbackConfiguration(String name, Function<Configuration,RollbackConfiguration> rollbackConfigurationBuilder)
EventProcessingConfigurer
Function
that builds the RollbackConfiguration
for given processor name
.
Defaults to a RollbackConfigurationType.ANY_THROWABLE
registerRollbackConfiguration
in interface EventProcessingConfigurer
name
- a String
specifying the name of an EventProcessor
rollbackConfigurationBuilder
- a Function
that builds a RollbackConfiguration
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerTransactionManager(String name, Function<Configuration,TransactionManager> transactionManagerBuilder)
EventProcessingConfigurer
registerTransactionManager
in interface EventProcessingConfigurer
name
- a String
specifying the name of an EventProcessor
transactionManagerBuilder
- a Function
that builds a TransactionManager
EventProcessingConfigurer
instance, for fluent interfacingpublic EventProcessingConfigurer registerTrackingEventProcessorConfiguration(Function<Configuration,TrackingEventProcessorConfiguration> trackingEventProcessorConfigurationBuilder)
EventProcessingConfigurer
Function
that builds a TrackingEventProcessorConfiguration
to use as the default.registerTrackingEventProcessorConfiguration
in interface EventProcessingConfigurer
trackingEventProcessorConfigurationBuilder
- a Function
that builds a
TrackingEventProcessorConfiguration
EventProcessingConfigurer
instance, for fluent interfacingCopyright © 2010–2019. All rights reserved.