MulticastDispatcher

public interface MulticastDispatcher<C extends MessageClass, E extends MessageEnvelope> implements MessageDispatcher<C, E>

Dispatches a message to several entities of the same type.

Parameters

<C>

the type of dispatched messages

<E>

the type of envelopes for dispatched objects that contain messages

Inheritors

Inherited functions

Link copied to clipboard
public boolean canDispatch(E envelope)
Checks if this dispatcher can dispatch the given message.
Link copied to clipboard
public abstract DispatchOutcome dispatch(E envelope)
Dispatches the message contained in the passed envelope and returns the outcome.
Link copied to clipboard
public abstract ImmutableSet<C> messageClasses()
Obtains a set of message classes that can be processed by this dispatcher.