Interface EventProcessorCustomization
- All Superinterfaces:
BiFunction<Configuration,EventProcessorConfiguration, EventProcessorConfiguration>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface EventProcessorCustomization
extends BiFunction<Configuration,EventProcessorConfiguration,EventProcessorConfiguration>
Allows customizing the
EventProcessorConfiguration.
The interface provides composition capabilities through andThen(EventProcessorCustomization) to allow chaining
multiple customizations in a specific order.
- Since:
- 5.0.0
- Author:
- Mateusz Nowak
-
Method Summary
Modifier and TypeMethodDescriptiondefault EventProcessorCustomizationReturns a composed customization that applies this customization first, then applies the other customization.static EventProcessorCustomizationnoOp()Creates a no-operation customization that returns the processor configuration unchanged.Methods inherited from interface java.util.function.BiFunction
andThen, apply
-
Method Details
-
noOp
Creates a no-operation customization that returns the processor configuration unchanged.- Returns:
- A customization that applies no changes to the processor configuration.
-
andThen
Returns a composed customization that applies this customization first, then applies the other customization.This allows for chaining multiple customizations together, with each subsequent customization receiving the result of the previous one.
- Parameters:
other- The customization to apply after this one.- Returns:
- A composed customization that applies both customizations in sequence.
-