Interface ActionHandler<T extends Action<R>,​R>

  • Type Parameters:
    T - the type of the Action to handle
    R - the type of messages of the Channel
    All Known Implementing Classes:
    CallActionHandler, ConsumerActionHandler, JumpActionHandler, ReturnActionHandler, SubscriptionActionHandler

    public interface ActionHandler<T extends Action<R>,​R>
    ActionHandler are responsible to handle the execution of the final Action of a Channel.

    Actions serve only as representative container for the information necessary to execute them. Any logic regarding their execution is handled by the ActionHandlers. When a message reaches the end of a Channel, the ActionHandlerSet serves as a lookup object for an ActionHandler matching the Channel's final Action.

    See Also:
    EventMaid Documentation
    • Method Detail

      • handle

        void handle​(T action,
                    ProcessingContext<R> processingContext)
        Handle the execution of the given Action and message.
        Parameters:
        action - the Action this handler was written for
        processingContext - the message