getDispatcherForType

protected Optional<? extends D> getDispatcherForType(C messageClass)

Obtains a single dispatcher (if available) for the passed message.

Parameters

messageClass

the class of the message to find a dispatcher for

Throws

if more than one dispatcher is found