Class Jump<T>

  • Type Parameters:
    T - the type of messages of both Channels
    All Implemented Interfaces:
    Action<T>

    public final class Jump<T>
    extends Object
    implements Action<T>
    This Action takes the message and sends it in the given Channel.
    See Also:
    EventMaid Documentation
    • Constructor Detail

      • Jump

        public Jump()
    • Method Detail

      • jumpTo

        public static <T> Jump<T> jumpTo​(Channel<T> targetChannel)
        Factory method to create a new Jump object, that forwards messages into the given Channel.
        Type Parameters:
        T - the tyoe if messages of both Channels
        Parameters:
        targetChannel - the Channel to forward messages to
        Returns:
        a new Jump Action