public class IntervalBlock implements IExitBlock<T>, IBlock
public IntervalBlock(@NotNull
java.lang.String name,
long period,
@NotNull
java.util.concurrent.TimeUnit unit,
boolean start)
@NotNull public java.util.Set<org.mechdancer.dataflow.core.intefaces.ITarget> getTargets()
Targets set
宿集合
public void start()
启动
@Nullable public java.lang.Boolean pause()
暂停
@NotNull public java.lang.Object consume(long id)
Consumes a event
If is success, event might be removed from queue in source. Called by target, which notified by source.
消费一个事件
如果成功,事件可能从源的队列中移除 由得到源通知的宿调用
id - id of the event 事件的标识@Nullable
public java.lang.Object receive(@NotNull
kotlin.coroutines.Continuation<? super java.lang.Long> p)
Blocking receive
阻塞接收
@NotNull public ILink<java.lang.Long> linkTo(@NotNull ITarget<java.lang.Long> target, @NotNull LinkOptions<java.lang.Long> options)
Links to a specific target
添加到指定宿的链接
@NotNull public java.lang.String getName()
@NotNull public java.util.UUID getUuid()
public int compareTo(@NotNull
IWithUUID other)