canDispatch

public final boolean canDispatch(EventEnvelope event)

Checks if this dispatcher can dispatch the given message.

This method does not check that the type of the message is one of the dispatched message classes. Instead, it validates the message upon some custom rules of this dispatcher.

Extend this method to forbid messages from being dispatched to this instance.

Return

true is the given message can be dispatched by this dispatcher, false otherwise

Parameters

envelope

the message to check