EnrichableMessageEnvelope

public interface EnrichableMessageEnvelope<I extends Message, T, M extends Message, C extends EnrichableMessageContext, E extends EnrichableMessageEnvelope<I, T, M, C, E>> implements MessageEnvelope<I, T, C>

A common interface for enrichable message envelopes.

Parameters

<E>

the type of the envelope for the covariance of the return values

Inheritors

Functions

Link copied to clipboard
public abstract E toEnriched(EnrichmentService<M, C> service)
Creates a copy with the envelope adding enrichments to the context of the message.

Inherited functions

Link copied to clipboard
public abstract Origin asMessageOrigin()
Packs this message as an Origin of an event.
Link copied to clipboard
public abstract C context()
Obtains the context of the message.
Link copied to clipboard
public abstract I id()
The ID of the message.
Link copied to clipboard
public abstract Message message()
Obtains the message.
Link copied to clipboard
public abstract MessageClass messageClass()
Obtains the message class.
Link copied to clipboard
public abstract T outerObject()
Obtains the object which contains the message of interest.