Interface SubscribingEventProcessorModule.Customization

All Superinterfaces:
BiFunction<Configuration,SubscribingEventProcessorConfiguration,SubscribingEventProcessorConfiguration>
Enclosing class:
SubscribingEventProcessorModule
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 SubscribingEventProcessorModule.Customization extends BiFunction<Configuration,SubscribingEventProcessorConfiguration,SubscribingEventProcessorConfiguration>
Allows customizing the SubscribingEventProcessorConfiguration.

The interface provides composition capabilities through andThen(SubscribingEventProcessorModule.Customization) to allow chaining multiple customizations in a specific order.

Since:
5.0.0
Author:
Mateusz Nowak
  • 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.