OUT - the output data type.public interface ResultChannel<OUT> extends Channel.InputChannel<OUT>
Channel.InputChannel<IN>, Channel.OutputChannel<OUT>| Modifier and Type | Method and Description |
|---|---|
ResultChannel<OUT> |
after(long delay,
TimeUnit timeUnit)
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well. |
ResultChannel<OUT> |
after(TimeDuration delay)
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well. |
ResultChannel<OUT> |
now()
Tells the channel to not delay the transfer of data.
|
ResultChannel<OUT> |
orderByCall()
Tells the channel to sort the passed input data based on the order of the calls to the
pass methods.
|
ResultChannel<OUT> |
orderByChance()
Tells the channel to avoid sorting the passed input in any particular order.
|
ResultChannel<OUT> |
orderByDelay()
Tells the channel to sort the passed input data based on the specific delay.
Note that only the inputs passed with a 0 delay will be delivered in the same order as they are passed to the channel, while the others will be delivered as soon as the dedicated runner handles the specific execution. |
ResultChannel<OUT> |
pass(Channel.OutputChannel<? extends OUT> channel)
Passes the data returned by the specified channel to this one.
|
ResultChannel<OUT> |
pass(Iterable<? extends OUT> outputs)
Passes the data returned by the specified iterable to this channel.
|
ResultChannel<OUT> |
pass(OUT... outputs)
Passes the specified input data to this channel.
|
ResultChannel<OUT> |
pass(OUT output)
Passes the specified input to this channel.
|
@NotNull ResultChannel<OUT> after(@NotNull TimeDuration delay)
after in interface Channel.InputChannel<OUT>delay - the delay.@NotNull ResultChannel<OUT> after(long delay, @NotNull TimeUnit timeUnit)
after in interface Channel.InputChannel<OUT>delay - the delay value.timeUnit - the delay time unit.@NotNull ResultChannel<OUT> now()
now in interface Channel.InputChannel<OUT>@NotNull ResultChannel<OUT> orderByCall()
orderByCall in interface Channel.InputChannel<OUT>Channel.InputChannel.orderByChance(),
Channel.InputChannel.orderByDelay()@NotNull ResultChannel<OUT> orderByChance()
orderByChance in interface Channel.InputChannel<OUT>Channel.InputChannel.orderByCall(),
Channel.InputChannel.orderByDelay()@NotNull ResultChannel<OUT> orderByDelay()
orderByDelay in interface Channel.InputChannel<OUT>Channel.InputChannel.orderByCall(),
Channel.InputChannel.orderByChance()@NotNull ResultChannel<OUT> pass(@Nullable Channel.OutputChannel<? extends OUT> channel)
pass in interface Channel.InputChannel<OUT>channel - the output channel.@NotNull ResultChannel<OUT> pass(@Nullable Iterable<? extends OUT> outputs)
pass in interface Channel.InputChannel<OUT>outputs - the iterable returning the input data.@NotNull ResultChannel<OUT> pass(@Nullable OUT output)
pass in interface Channel.InputChannel<OUT>output - the input.@NotNull ResultChannel<OUT> pass(@Nullable OUT... outputs)
pass in interface Channel.InputChannel<OUT>outputs - the input data.