IN - the input data type.public static interface Channel.InputChannel<IN> extends Channel
Channel.InputChannel<IN>, Channel.OutputChannel<OUT>| Modifier and Type | Method and Description |
|---|---|
Channel.InputChannel<IN> |
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. |
Channel.InputChannel<IN> |
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. |
Channel.InputChannel<IN> |
now()
Tells the channel to not delay the transfer of data.
|
Channel.InputChannel<IN> |
orderByCall()
Tells the channel to sort the passed input data based on the order of the calls to the
pass methods.
|
Channel.InputChannel<IN> |
orderByChance()
Tells the channel to avoid sorting the passed input in any particular order.
|
Channel.InputChannel<IN> |
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. |
Channel.InputChannel<IN> |
pass(Channel.OutputChannel<? extends IN> channel)
Passes the data returned by the specified channel to this one.
|
Channel.InputChannel<IN> |
pass(IN... inputs)
Passes the specified input data to this channel.
|
Channel.InputChannel<IN> |
pass(IN input)
Passes the specified input to this channel.
|
Channel.InputChannel<IN> |
pass(Iterable<? extends IN> inputs)
Passes the data returned by the specified iterable to this channel.
|
@NotNull Channel.InputChannel<IN> after(@NotNull TimeDuration delay)
delay - the delay.RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.@NotNull Channel.InputChannel<IN> after(long delay, @NotNull TimeUnit timeUnit)
delay - the delay value.timeUnit - the delay time unit.RoutineException - if the execution has been aborted.IllegalArgumentException - if the specified delay is negative.IllegalStateException - if this channel is already closed.@NotNull Channel.InputChannel<IN> now()
RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.@NotNull Channel.InputChannel<IN> orderByCall()
RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.orderByChance(),
orderByDelay()@NotNull Channel.InputChannel<IN> orderByChance()
RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.orderByCall(),
orderByDelay()@NotNull Channel.InputChannel<IN> orderByDelay()
RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.orderByCall(),
orderByChance()@NotNull Channel.InputChannel<IN> pass(@Nullable Channel.OutputChannel<? extends IN> channel)
channel - the output channel.RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.@NotNull Channel.InputChannel<IN> pass(@Nullable Iterable<? extends IN> inputs)
inputs - the iterable returning the input data.RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.@NotNull Channel.InputChannel<IN> pass(@Nullable IN input)
input - the input.RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.@NotNull Channel.InputChannel<IN> pass(@Nullable IN... inputs)
inputs - the input data.RoutineException - if the execution has been aborted.IllegalStateException - if this channel is already closed.