Class FunctionMessageHandler

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, MessageHandler

public final class FunctionMessageHandler
extends AbstractMessageHandler
Message handler that runs an injected function (expected to have side effects).

The function may return an exception to signal failure, allowing for checked exceptions.

Since:
4.1.0