Interface ProcessorDefinition.ProcessorDefinitionSelectorStep<T extends EventProcessorConfiguration>
- Type Parameters:
T- The type ofEventProcessorConfigurationfor this processor.
- Enclosing interface:
ProcessorDefinition
public static interface ProcessorDefinition.ProcessorDefinitionSelectorStep<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 TypeMethodDescriptionDefines the selection criteria for event handlers to be assigned to this processor.
-
Method Details
-
assigningHandlers
@Nonnull ProcessorDefinition.ProcessorDefinitionConfigurationStep<T> assigningHandlers(@Nonnull Predicate<ProcessorDefinition.EventHandlerDescriptor> selector) Defines the selection criteria for event handlers to be assigned to this processor.The provided predicate will be evaluated for each event handler component discovered in the Spring context. Handlers for which the predicate returns
truewill be assigned to this processor.Example:
assigningHandlers(descriptor -> descriptor.beanName().startsWith("order"))- Parameters:
selector- A predicate that determines which event handlers to assign to this processor.- Returns:
- The next step in the fluent API to configure the processor settings.
-