Interface PooledStreamingEventProcessorModule.Customization
- All Superinterfaces:
BiFunction<Configuration,PooledStreamingEventProcessorConfiguration, PooledStreamingEventProcessorConfiguration>
- Enclosing class:
PooledStreamingEventProcessorModule
- 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 static interface PooledStreamingEventProcessorModule.Customization
extends BiFunction<Configuration,PooledStreamingEventProcessorConfiguration,PooledStreamingEventProcessorConfiguration>
Allows customizing the
PooledStreamingEventProcessorConfiguration.
The interface provides composition capabilities through andThen(Customization) to allow chaining
multiple customizations in a specific order.
- Since:
- 5.0.0
- Author:
- Mateusz Nowak
-
Method Summary
Modifier and TypeMethodDescriptionReturns a composed customization that applies this customization first, then applies the other customization.noOp()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
default PooledStreamingEventProcessorModule.Customization andThen(@Nonnull PooledStreamingEventProcessorModule.Customization other) 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.
-