dispatcherOf

protected Optional<D> dispatcherOf(E envelope)

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

Parameters

envelope

the message to find a dispatcher for

Throws

if more than one dispatcher is found