Class EventTransformerChain.Builder

java.lang.Object
io.axoniq.framework.messaging.transformation.events.EventTransformerChain.Builder
Enclosing class:
EventTransformerChain

public static final class EventTransformerChain.Builder extends Object
Fluent builder for EventTransformerChain. An exact from match takes precedence over a predicate match independent of registration order. Predicates are consulted only when no exact match applies, in registration order. build() produces a new, immutable EventTransformerChain; configuration is startup-only, so register(EventTransformation) and maxIterationsPerEvent(int) calls after build() are rejected.

maxIterationsPerEvent(int) caps how many times the chain re-applies transformations to a single event during fixed-point chaining (default EventTransformerChain.DEFAULT_MAX_ITERATIONS_PER_EVENT); it guards against a self-matching or cyclic configuration and otherwise never fires.

Not thread-safe: build the chain on a single thread at startup, then share the resulting EventTransformerChain (which is immutable and concurrent-safe).