MessageEnvelope

public interface MessageEnvelope<I extends Message, T, C extends Message>

A common interface for obtaining messages from wrapping objects.

Parameters

<I>

the type of the message ID

<T>

the type of the object that wraps a message

<C>

the type of the message context

Inheritors

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.