MessageEndpoint

public interface MessageEndpoint<I, M extends SignalEnvelope<? extends Object, ? extends Object, ? extends Object>>

An endpoint for messages delivered to an abstract target.

Parameters

<I>

the type of target identifier

<M>

the type of message envelope being delivered

Inheritors

Functions

Link copied to clipboard
public abstract DispatchOutcome dispatchTo(I targetId)
Dispatches the message to the target with the passed ID.
Link copied to clipboard
public abstract void onDuplicate(I target, M envelope)
The callback invoked if the handled signal is a duplicate.
Link copied to clipboard
public abstract Repository<I, ? extends Object> repository()
Obtains the repository which manages the target entities.