createEnrichment

public abstract Optional<Enrichment> createEnrichment(M message, C context)

Creates an enrichment for the passed message.

Return

an instance with all available enrichments for the passed message, or empty Optional if the passed message cannot be enriched

Parameters

message

the enrichable message

context

the context of the enrichable message