DeadMessageHandler

public interface DeadMessageHandler<E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>>

A definition of a handler for a dead message.

If no target dispatchers are found for a message passed to the bus, it will result in a call to DeadMessageHandler.handle(MessageEnvelope). The method produces MessageUnhandled instance describing the dead message. It may also process the given message (e.g. store it into the bus store).

Functions

Link copied to clipboard
public abstract MessageUnhandled handle(E message)
Handles the dead message in a bus-specific way and produces an MessageUnhandled which may be converted to a Error for notifying the poster about the absence of dispatchers.