Class Jump<T>
- java.lang.Object
-
- de.quantummaid.eventmaid.channel.action.Jump<T>
-
- Type Parameters:
T- the type of messages of bothChannels
- All Implemented Interfaces:
Action<T>
public final class Jump<T> extends Object implements Action<T>
ThisActiontakes the message and sends it in the givenChannel.- See Also:
- EventMaid Documentation
-
-
Constructor Summary
Constructors Constructor Description Jump()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Jump<T>jumpTo(Channel<T> targetChannel)Factory method to create a newJumpobject, that forwards messages into the givenChannel.
-
-
-
Method Detail
-
jumpTo
public static <T> Jump<T> jumpTo(Channel<T> targetChannel)
Factory method to create a newJumpobject, that forwards messages into the givenChannel.- Type Parameters:
T- the tyoe if messages of bothChannels- Parameters:
targetChannel- theChannelto forward messages to- Returns:
- a new
JumpAction
-
-