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.

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 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 EventProcessorCustomization andThen(@Nonnull EventProcessorCustomization 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.