Interface EventProcessorDefinition.SelectorStep<T extends EventProcessorConfiguration>
- Type Parameters:
T- The type ofEventProcessorConfigurationfor this processor.
- Enclosing interface:
EventProcessorDefinition
public static interface EventProcessorDefinition.SelectorStep<T extends EventProcessorConfiguration>
The second step in the processor definition fluent API for selecting which event handlers should be assigned to
the processor.
-
Method Summary
Modifier and TypeMethodDescriptionassigningHandlers(EventHandlerSelector selector) Defines the selection criteria for event handlers to be assigned to this processor.
-
Method Details
-
assigningHandlers
Defines the selection criteria for event handlers to be assigned to this processor.The provided
selectorwill be evaluated for each event handler component discovered in the Spring context. Handlers for which theselectorreturnstruewill be assigned to this processor. Note that theEventHandlerSelectordescribes a number of out-of-the-box selector options that you can use for convenience.Example:
assigningHandlers(descriptor -> descriptor.beanName().startsWith("order"))- Parameters:
selector- a selector that determines which event handlers to assign to this processor- Returns:
- the next step in the fluent API to configure the processor settings
- See Also:
-