AbstractMessageEnvelope

public abstract class AbstractMessageEnvelope<I extends Message, T, C extends Message> implements MessageEnvelope<I, T, C>

Abstract base for classes implementing MessageEnvelope.

Parameters

<I>

the class of the message ID

<T>

the type of the object that wraps a message

<C>

the type of the message context

Inheritors

Constructors

Link copied to clipboard
protected void AbstractMessageEnvelope(T object)

Functions

Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public T outerObject()
Obtains the object which contains the message of interest.
Link copied to clipboard
public String toString()

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.