Enricher

public abstract class Enricher<M extends Message, C extends EnrichableMessageContext> implements EnrichmentService<M, C>

Enriches messages after they are stored, and before they are dispatched.

Inheritors

Constructors

Link copied to clipboard
protected void Enricher(EnricherBuilder<M, C, ? extends Object> builder)
Creates a new instance taking functions from the passed builder.

Functions

Link copied to clipboard
public Optional<Enrichment> createEnrichment(M message, C context)
Creates an enrichment for the passed message.
Link copied to clipboard
public E enrich<E extends EnrichableMessageEnvelope<? extends Object, ? extends Object, M, C, E>>(E source)
Enriches the passed message if it can be enriched.