Class JumpActionHandler<T>

  • Type Parameters:
    T - the type of messages of the Channel
    All Implemented Interfaces:
    ActionHandler<Jump<T>,​T>

    public final class JumpActionHandler<T>
    extends Object
    implements ActionHandler<Jump<T>,​T>
    The ActionHandler implementation for the Jump Action. This handler will take the message and sends it on the given target the type of messages of the Channel.
    See Also:
    EventMaid Documentation
    • Constructor Detail

      • JumpActionHandler

        public JumpActionHandler()
    • Method Detail

      • jumpActionHandler

        public static <T> JumpActionHandler<T> jumpActionHandler()
        Factory method for a new JumpActionHandler.
        Type Parameters:
        T - the type of messages of the Channel
        Returns:
        a new JumpActionHandler
      • handle

        public void handle​(Jump<T> jump,
                           ProcessingContext<T> processingContext)
        Takes the message and sends in on the given Channel.
        Specified by:
        handle in interface ActionHandler<Jump<T>,​T>
        Parameters:
        jump - the Jump Action
        processingContext - the message