public class ActionBlock<T> implements IEntranceBlock<T>, IBlock
Action block
Performs corresponding action on each message.
动作块
对每个到来的消息执行对应的动作
public ActionBlock(@NotNull
java.lang.String name,
@NotNull
ExecutionOptions options,
@NotNull
kotlin.jvm.functions.Function2<? super T,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object> action)
Action block
Performs corresponding action on each message.
动作块
对每个到来的消息执行对应的动作
@NotNull public org.mechdancer.dataflow.core.intefaces.IPostable.DefaultSource<T> getDefaultSource()
Default source
默认源节点
@NotNull public Feedback offer(long id, @NotNull IEgress<T> egress)
id - event id 源内部事件的唯一标识,供节点查找egress - exit of this event 事件到来的出口@NotNull public java.lang.String getName()
@NotNull public java.util.UUID getUuid()
public int compareTo(@NotNull
IWithUUID other)