Entity Message Endpoint
public abstract class EntityMessageEndpoint<I, E extends Entity<I, ? extends Object>, M extends SignalEnvelope<? extends Object, ? extends Object, ? extends Object>> extends AbstractMessageEndpoint<I, M>
Abstract base for endpoints handling messages sent to entities.
Loading and storing an entity is a tenant-sensitive operation, which must be performed under the context of the tenant ID in which the message we dispatch was originated.
Parameters
<I>
the type of entity IDs
<E>
the type of entities
<M>
the type of message envelopes
Inheritors
Functions
Link copied to clipboard
The callback invoked after the message is dispatched to an entity with the given ID.
Link copied to clipboard
Invokes entity-specific method for dispatching the message.
Link copied to clipboard
Verifies whether the entity was modified during the message dispatching.
Link copied to clipboard
Allows derived classes to handle empty list of uncommitted events returned by the entity in response to the message.
Link copied to clipboard
Callback to perform operations if the entity was modified during message dispatching.
Link copied to clipboard
Obtains the parent repository of this endpoint.