public interface DataflowReadChannel<T> extends SelectableChannel<T>
| Modifier and Type | Method and Description |
|---|---|
void |
binaryChoice(DataflowWriteChannel<T> trueBranch,
DataflowWriteChannel<T> falseBranch,
groovy.lang.Closure<java.lang.Boolean> code)
Directs the output to one of the two output channels depending on the boolean result of the provided closure.
|
void |
binaryChoice(java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> trueBranch,
DataflowWriteChannel<T> falseBranch,
groovy.lang.Closure<java.lang.Boolean> code)
Directs the output to one of the two output channels depending on the boolean result of the provided closure.
|
void |
binaryChoice(PGroup group,
DataflowWriteChannel<T> trueBranch,
DataflowWriteChannel<T> falseBranch,
groovy.lang.Closure<java.lang.Boolean> code)
Directs the output to one of the two output channels depending on the boolean result of the provided closure.
|
void |
binaryChoice(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> trueBranch,
DataflowWriteChannel<T> falseBranch,
groovy.lang.Closure<java.lang.Boolean> code)
Directs the output to one of the two output channels depending on the boolean result of the provided closure.
|
void |
binaryChoice(Pool pool,
DataflowWriteChannel<T> trueBranch,
DataflowWriteChannel<T> falseBranch,
groovy.lang.Closure<java.lang.Boolean> code)
Directs the output to one of the two output channels depending on the boolean result of the provided closure.
|
void |
binaryChoice(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> trueBranch,
DataflowWriteChannel<T> falseBranch,
groovy.lang.Closure<java.lang.Boolean> code)
Directs the output to one of the two output channels depending on the boolean result of the provided closure.
|
<V> DataflowReadChannel<V> |
chainWith(groovy.lang.Closure<V> closure)
Creates and attaches a new operator processing values from the channel
|
<V> DataflowReadChannel<V> |
chainWith(java.util.Map<java.lang.String,java.lang.Object> params,
groovy.lang.Closure<V> closure)
Creates and attaches a new operator processing values from the channel
|
<V> DataflowReadChannel<V> |
chainWith(PGroup group,
groovy.lang.Closure<V> closure)
Creates and attaches a new operator processing values from the channel
|
<V> DataflowReadChannel<V> |
chainWith(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
groovy.lang.Closure<V> closure)
Creates and attaches a new operator processing values from the channel
|
<V> DataflowReadChannel<V> |
chainWith(Pool pool,
groovy.lang.Closure<V> closure)
Creates and attaches a new operator processing values from the channel
|
<V> DataflowReadChannel<V> |
chainWith(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
groovy.lang.Closure<V> closure)
Creates and attaches a new operator processing values from the channel
|
void |
choice(java.util.List<DataflowWriteChannel<T>> outputs,
groovy.lang.Closure<java.lang.Integer> code)
Directs the output to one of the output channels depending on the int result of the provided closure.
|
void |
choice(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<T>> outputs,
groovy.lang.Closure<java.lang.Integer> code)
Directs the output to one of the output channels depending on the int result of the provided closure.
|
void |
choice(PGroup group,
java.util.List<DataflowWriteChannel<T>> outputs,
groovy.lang.Closure<java.lang.Integer> code)
Directs the output to one of the output channels depending on the int result of the provided closure.
|
void |
choice(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<T>> outputs,
groovy.lang.Closure<java.lang.Integer> code)
Directs the output to one of the output channels depending on the int result of the provided closure.
|
void |
choice(Pool pool,
java.util.List<DataflowWriteChannel<T>> outputs,
groovy.lang.Closure<java.lang.Integer> code)
Directs the output to one of the output channels depending on the int result of the provided closure.
|
void |
choice(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<T>> outputs,
groovy.lang.Closure<java.lang.Integer> code)
Directs the output to one of the output channels depending on the int result of the provided closure.
|
DataflowReadChannel<T> |
filter(groovy.lang.Closure<java.lang.Boolean> closure)
Creates and attaches a new operator that will filter data using the provided closure
|
DataflowReadChannel<T> |
filter(java.util.Map<java.lang.String,java.lang.Object> params,
groovy.lang.Closure<java.lang.Boolean> closure)
Creates and attaches a new operator that will filter data using the provided closure
|
DataflowReadChannel<T> |
filter(PGroup group,
groovy.lang.Closure<java.lang.Boolean> closure)
Creates and attaches a new operator that will filter data using the provided closure
|
DataflowReadChannel<T> |
filter(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
groovy.lang.Closure<java.lang.Boolean> closure)
Creates and attaches a new operator that will filter data using the provided closure
|
DataflowReadChannel<T> |
filter(Pool pool,
groovy.lang.Closure<java.lang.Boolean> closure)
Creates and attaches a new operator that will filter data using the provided closure
|
DataflowReadChannel<T> |
filter(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
groovy.lang.Closure<java.lang.Boolean> closure)
Creates and attaches a new operator that will filter data using the provided closure
|
DataflowChannelEventListenerManager<T> |
getEventManager()
Retrieves the event manager object of this channel
|
T |
getVal()
Reads the current value of the channel.
|
T |
getVal(long timeout,
java.util.concurrent.TimeUnit units)
Reads the current value of the channel.
|
void |
getValAsync(MessageStream callback)
Asynchronously retrieves the value from the channel.
|
void |
getValAsync(java.lang.Object attachment,
MessageStream callback)
Asynchronously retrieves the value from the channel.
|
void |
into(DataflowWriteChannel<T> target)
Makes the output of the current channel to be an input for the specified channel
|
void |
into(java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target)
Makes the output of the current channel to be an input for the specified channel
|
void |
into(PGroup group,
DataflowWriteChannel<T> target)
Makes the output of the current channel to be an input for the specified channel
|
void |
into(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target)
Makes the output of the current channel to be an input for the specified channel
|
void |
into(Pool pool,
DataflowWriteChannel<T> target)
Makes the output of the current channel to be an input for the specified channel
|
void |
into(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target)
Makes the output of the current channel to be an input for the specified channel
|
boolean |
isBound()
Check if value has been set already for this expression
|
int |
length()
Reports the current number of elements in the channel
|
<V> DataflowReadChannel<V> |
merge(DataflowReadChannel<java.lang.Object> other,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(java.util.List<DataflowReadChannel<java.lang.Object>> others,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(java.util.Map<java.lang.String,java.lang.Object> params,
DataflowReadChannel<java.lang.Object> other,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowReadChannel<java.lang.Object>> others,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(PGroup group,
DataflowReadChannel<java.lang.Object> other,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(PGroup group,
java.util.List<DataflowReadChannel<java.lang.Object>> others,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowReadChannel<java.lang.Object> other,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowReadChannel<java.lang.Object>> others,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(Pool pool,
DataflowReadChannel<java.lang.Object> other,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(Pool pool,
java.util.List<DataflowReadChannel<java.lang.Object>> others,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowReadChannel<java.lang.Object> other,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
merge(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowReadChannel<java.lang.Object>> others,
groovy.lang.Closure<V> closure)
Merges channels together as inputs for a single dataflow operator.
|
<V> DataflowReadChannel<V> |
or(groovy.lang.Closure<V> closure)
Creates and attaches a new operator processing values from the channel
|
void |
or(DataflowWriteChannel<T> target)
Makes the output of the current channel to be an input for the specified channel
|
<V> Promise<V> |
rightShift(groovy.lang.Closure<V> closure)
Schedule closure to be executed after data became available.
|
void |
separate(java.util.List<DataflowWriteChannel<?>> outputs,
groovy.lang.Closure<java.util.List<java.lang.Object>> code)
Allows the closure to output different values to different output channels.
|
void |
separate(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<?>> outputs,
groovy.lang.Closure<java.util.List<java.lang.Object>> code)
Allows the closure to output different values to different output channels.
|
void |
separate(PGroup group,
java.util.List<DataflowWriteChannel<?>> outputs,
groovy.lang.Closure<java.util.List<java.lang.Object>> code)
Allows the closure to output different values to different output channels.
|
void |
separate(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<?>> outputs,
groovy.lang.Closure<java.util.List<java.lang.Object>> code)
Allows the closure to output different values to different output channels.
|
void |
separate(Pool pool,
java.util.List<DataflowWriteChannel<?>> outputs,
groovy.lang.Closure<java.util.List<java.lang.Object>> code)
Allows the closure to output different values to different output channels.
|
void |
separate(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<?>> outputs,
groovy.lang.Closure<java.util.List<java.lang.Object>> code)
Allows the closure to output different values to different output channels.
|
void |
split(DataflowWriteChannel<T> target1,
DataflowWriteChannel<T> target2)
Splits the output of the current channel to be an input for the specified channels
|
void |
split(java.util.List<DataflowWriteChannel<T>> targets)
Makes the output of the current channel to be an input for the specified channels
|
void |
split(java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target1,
DataflowWriteChannel<T> target2)
Splits the output of the current channel to be an input for the specified channels
|
void |
split(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<T>> targets)
Makes the output of the current channel to be an input for the specified channels
|
void |
split(PGroup group,
DataflowWriteChannel<T> target1,
DataflowWriteChannel<T> target2)
Splits the output of the current channel to be an input for the specified channels
|
void |
split(PGroup group,
java.util.List<DataflowWriteChannel<T>> targets)
Makes the output of the current channel to be an input for the specified channels
|
void |
split(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target1,
DataflowWriteChannel<T> target2)
Splits the output of the current channel to be an input for the specified channels
|
void |
split(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<T>> targets)
Makes the output of the current channel to be an input for the specified channels
|
void |
split(Pool pool,
DataflowWriteChannel<T> target1,
DataflowWriteChannel<T> target2)
Splits the output of the current channel to be an input for the specified channels
|
void |
split(Pool pool,
java.util.List<DataflowWriteChannel<T>> targets)
Makes the output of the current channel to be an input for the specified channels
|
void |
split(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target1,
DataflowWriteChannel<T> target2)
Splits the output of the current channel to be an input for the specified channels
|
void |
split(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<T>> targets)
Makes the output of the current channel to be an input for the specified channels
|
DataflowReadChannel<T> |
tap(DataflowWriteChannel<T> target)
Taps into the pipeline.
|
DataflowReadChannel<T> |
tap(java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target)
Taps into the pipeline.
|
DataflowReadChannel<T> |
tap(PGroup group,
DataflowWriteChannel<T> target)
Taps into the pipeline.
|
DataflowReadChannel<T> |
tap(PGroup group,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target)
Taps into the pipeline.
|
DataflowReadChannel<T> |
tap(Pool pool,
DataflowWriteChannel<T> target)
Taps into the pipeline.
|
DataflowReadChannel<T> |
tap(Pool pool,
java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target)
Taps into the pipeline.
|
<V> Promise<V> |
then(groovy.lang.Closure<V> closure)
Schedule closure to be executed after data became available.
|
<V> Promise<V> |
then(PGroup group,
groovy.lang.Closure<V> closure)
Schedule closure to be executed after data becomes available.
|
<V> Promise<V> |
then(Pool pool,
groovy.lang.Closure<V> closure)
Schedule closure to be executed after data becomes available.
|
<V> void |
whenBound(groovy.lang.Closure<V> closure)
Schedule closure to be executed after data becomes available.
|
void |
whenBound(MessageStream stream)
Send the bound data to provided stream when it becomes available
|
<V> void |
whenBound(PGroup group,
groovy.lang.Closure<V> closure)
Schedule closure to be executed after data becomes available.
|
<V> void |
whenBound(Pool pool,
groovy.lang.Closure<V> closure)
Schedule closure to be executed after data becomes available.
|
poll, wheneverBound, wheneverBoundvoid getValAsync(MessageStream callback)
callback - An actor to send the bound value to.void getValAsync(java.lang.Object attachment,
MessageStream callback)
attachment - arbitrary non-null attachment if reader needs better identification of resultcallback - An actor to send the bound value plus the supplied index to.T getVal() throws java.lang.InterruptedException
java.lang.InterruptedException - If the current thread gets interrupted while waiting for the channel to be boundT getVal(long timeout, java.util.concurrent.TimeUnit units) throws java.lang.InterruptedException
timeout - The timeout valueunits - Units for the timeoutjava.lang.InterruptedException - If the current thread gets interrupted while waiting for the channel to be bound<V> Promise<V> rightShift(groovy.lang.Closure<V> closure)
rightShift() redefines the >> operator so you can write df >> {println it} instead of df.whenBound{println it}
closure - closure to execute when data becomes available. The closure should take at most one argument.<V> void whenBound(groovy.lang.Closure<V> closure)
closure - closure to execute when data becomes available. The closure should take at most one argument.<V> void whenBound(Pool pool, groovy.lang.Closure<V> closure)
pool - The thread pool to use for task scheduling for asynchronous message deliveryclosure - closure to execute when data becomes available. The closure should take at most one argument.<V> void whenBound(PGroup group, groovy.lang.Closure<V> closure)
group - The PGroup to use for task scheduling for asynchronous message deliveryclosure - closure to execute when data becomes available. The closure should take at most one argument.void whenBound(MessageStream stream)
stream - stream where to send result<V> Promise<V> then(groovy.lang.Closure<V> closure)
closure - closure to execute when data becomes available. The closure should take at most one argument.<V> Promise<V> then(Pool pool, groovy.lang.Closure<V> closure)
pool - The thread pool to use for task scheduling for asynchronous message deliveryclosure - closure to execute when data becomes available. The closure should take at most one argument.<V> Promise<V> then(PGroup group, groovy.lang.Closure<V> closure)
group - The PGroup to use for task scheduling for asynchronous message deliveryclosure - closure to execute when data becomes available. The closure should take at most one argument.<V> DataflowReadChannel<V> chainWith(groovy.lang.Closure<V> closure)
V - The type of values returned from the supplied closureclosure - The function to invoke on all incoming values as part of the new operator's body<V> DataflowReadChannel<V> chainWith(Pool pool, groovy.lang.Closure<V> closure)
V - The type of values returned from the supplied closurepool - The thread pool to useclosure - The function to invoke on all incoming values as part of the new operator's body<V> DataflowReadChannel<V> chainWith(PGroup group, groovy.lang.Closure<V> closure)
V - The type of values returned from the supplied closuregroup - The PGroup to useclosure - The function to invoke on all incoming values as part of the new operator's body<V> DataflowReadChannel<V> chainWith(java.util.Map<java.lang.String,java.lang.Object> params, groovy.lang.Closure<V> closure)
V - The type of values returned from the supplied closureparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)closure - The function to invoke on all incoming values as part of the new operator's body<V> DataflowReadChannel<V> chainWith(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, groovy.lang.Closure<V> closure)
V - The type of values returned from the supplied closureparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to useclosure - The function to invoke on all incoming values as part of the new operator's body<V> DataflowReadChannel<V> chainWith(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, groovy.lang.Closure<V> closure)
V - The type of values returned from the supplied closureparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to useclosure - The function to invoke on all incoming values as part of the new operator's body<V> DataflowReadChannel<V> or(groovy.lang.Closure<V> closure)
V - The type of values returned from the supplied closureclosure - The function to invoke on all incoming values as part of the new operator's bodyDataflowReadChannel<T> filter(groovy.lang.Closure<java.lang.Boolean> closure)
closure - The filter function to invoke on all incoming values to decide whether to pass the value on or notDataflowReadChannel<T> filter(Pool pool, groovy.lang.Closure<java.lang.Boolean> closure)
pool - The thread pool to useclosure - The filter function to invoke on all incoming values to decide whether to pass the value on or notDataflowReadChannel<T> filter(PGroup group, groovy.lang.Closure<java.lang.Boolean> closure)
group - The PGroup to useclosure - The filter function to invoke on all incoming values to decide whether to pass the value on or notDataflowReadChannel<T> filter(java.util.Map<java.lang.String,java.lang.Object> params, groovy.lang.Closure<java.lang.Boolean> closure)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)closure - The filter function to invoke on all incoming values to decide whether to pass the value on or notDataflowReadChannel<T> filter(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, groovy.lang.Closure<java.lang.Boolean> closure)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to useclosure - The filter function to invoke on all incoming values to decide whether to pass the value on or notDataflowReadChannel<T> filter(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, groovy.lang.Closure<java.lang.Boolean> closure)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to useclosure - The filter function to invoke on all incoming values to decide whether to pass the value on or notvoid into(DataflowWriteChannel<T> target)
target - The channel to copy data intovoid into(Pool pool, DataflowWriteChannel<T> target)
pool - The thread pool to usetarget - The channel to copy data intovoid into(PGroup group, DataflowWriteChannel<T> target)
group - The PGroup to usetarget - The channel to copy data intovoid into(java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)target - The channel to copy data intovoid into(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> target)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to usetarget - The channel to copy data intovoid into(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> target)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to usetarget - The channel to copy data intovoid or(DataflowWriteChannel<T> target)
target - The channel to copy data intovoid split(DataflowWriteChannel<T> target1, DataflowWriteChannel<T> target2)
target1 - The first channel to copy data intotarget2 - The second channel to copy data intovoid split(Pool pool, DataflowWriteChannel<T> target1, DataflowWriteChannel<T> target2)
pool - The thread pool to usetarget1 - The first channel to copy data intotarget2 - The second channel to copy data intovoid split(PGroup group, DataflowWriteChannel<T> target1, DataflowWriteChannel<T> target2)
group - The PGroup to usetarget1 - The first channel to copy data intotarget2 - The second channel to copy data intovoid split(java.util.List<DataflowWriteChannel<T>> targets)
targets - The channels to copy data intovoid split(Pool pool, java.util.List<DataflowWriteChannel<T>> targets)
pool - The thread pool to usetargets - The channels to copy data intovoid split(PGroup group, java.util.List<DataflowWriteChannel<T>> targets)
group - The PGroup to usetargets - The channels to copy data intovoid split(java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> target1,
DataflowWriteChannel<T> target2)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)target1 - The first channel to copy data intotarget2 - The second channel to copy data intovoid split(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> target1, DataflowWriteChannel<T> target2)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to usetarget1 - The first channel to copy data intotarget2 - The second channel to copy data intovoid split(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> target1, DataflowWriteChannel<T> target2)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to usetarget1 - The first channel to copy data intotarget2 - The second channel to copy data intovoid split(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<T>> targets)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)targets - The channels to copy data intovoid split(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowWriteChannel<T>> targets)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to usetargets - The channels to copy data intovoid split(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowWriteChannel<T>> targets)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to usetargets - The channels to copy data intoDataflowReadChannel<T> tap(DataflowWriteChannel<T> target)
target - The channel to tap data intoDataflowReadChannel<T> tap(Pool pool, DataflowWriteChannel<T> target)
pool - The thread pool to usetarget - The channel to tap data intoDataflowReadChannel<T> tap(PGroup group, DataflowWriteChannel<T> target)
group - The PGroup to usetarget - The channel to tap data intoDataflowReadChannel<T> tap(java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> target)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)target - The channel to tap data intoDataflowReadChannel<T> tap(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> target)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to usetarget - The channel to tap data intoDataflowReadChannel<T> tap(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> target)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to usetarget - The channel to tap data into<V> DataflowReadChannel<V> merge(DataflowReadChannel<java.lang.Object> other, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsother - The channel to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(Pool pool, DataflowReadChannel<java.lang.Object> other, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelspool - The thread pool to useother - The channel to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(PGroup group, DataflowReadChannel<java.lang.Object> other, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsgroup - The PGroup to useother - The channel to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(java.util.List<DataflowReadChannel<java.lang.Object>> others, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsothers - The channels to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(Pool pool, java.util.List<DataflowReadChannel<java.lang.Object>> others, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelspool - The thread pool to useothers - The channels to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(PGroup group, java.util.List<DataflowReadChannel<java.lang.Object>> others, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsgroup - The PGroup to useothers - The channels to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(java.util.Map<java.lang.String,java.lang.Object> params, DataflowReadChannel<java.lang.Object> other, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)other - The channel to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, DataflowReadChannel<java.lang.Object> other, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to useother - The channel to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, DataflowReadChannel<java.lang.Object> other, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to useother - The channel to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowReadChannel<java.lang.Object>> others, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)others - The channels to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowReadChannel<java.lang.Object>> others, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to useothers - The channels to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.<V> DataflowReadChannel<V> merge(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowReadChannel<java.lang.Object>> others, groovy.lang.Closure<V> closure)
V - The type of values passed between the channelsparams - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to useothers - The channels to merge withclosure - The function to invoke on all incoming values as part of the new operator's body. The number of arguments to the closure must match the number of input channels.void binaryChoice(DataflowWriteChannel<T> trueBranch, DataflowWriteChannel<T> falseBranch, groovy.lang.Closure<java.lang.Boolean> code)
trueBranch - The channel to send data to if the closure returns truefalseBranch - The channel to send data to if the closure returns truecode - A closure directing data to either the true or the false output branchvoid binaryChoice(Pool pool, DataflowWriteChannel<T> trueBranch, DataflowWriteChannel<T> falseBranch, groovy.lang.Closure<java.lang.Boolean> code)
pool - The thread pool to usetrueBranch - The channel to send data to if the closure returns truefalseBranch - The channel to send data to if the closure returns truecode - A closure directing data to either the true or the false output branchvoid binaryChoice(PGroup group, DataflowWriteChannel<T> trueBranch, DataflowWriteChannel<T> falseBranch, groovy.lang.Closure<java.lang.Boolean> code)
group - The PGroup to usetrueBranch - The channel to send data to if the closure returns truefalseBranch - The channel to send data to if the closure returns truecode - A closure directing data to either the true or the false output branchvoid binaryChoice(java.util.Map<java.lang.String,java.lang.Object> params,
DataflowWriteChannel<T> trueBranch,
DataflowWriteChannel<T> falseBranch,
groovy.lang.Closure<java.lang.Boolean> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)trueBranch - The channel to send data to if the closure returns truefalseBranch - The channel to send data to if the closure returns truecode - A closure directing data to either the true or the false output branchvoid binaryChoice(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> trueBranch, DataflowWriteChannel<T> falseBranch, groovy.lang.Closure<java.lang.Boolean> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to usetrueBranch - The channel to send data to if the closure returns truefalseBranch - The channel to send data to if the closure returns truecode - A closure directing data to either the true or the false output branchvoid binaryChoice(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, DataflowWriteChannel<T> trueBranch, DataflowWriteChannel<T> falseBranch, groovy.lang.Closure<java.lang.Boolean> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to usetrueBranch - The channel to send data to if the closure returns truefalseBranch - The channel to send data to if the closure returns truecode - A closure directing data to either the true or the false output branchvoid choice(java.util.List<DataflowWriteChannel<T>> outputs, groovy.lang.Closure<java.lang.Integer> code)
outputs - The channels to send data to of the closure returns truecode - A closure returning an index of the output channel to direct the data tovoid choice(Pool pool, java.util.List<DataflowWriteChannel<T>> outputs, groovy.lang.Closure<java.lang.Integer> code)
pool - The thread pool to useoutputs - The channels to send data to.code - A closure returning an index of the output channel to direct the data tovoid choice(PGroup group, java.util.List<DataflowWriteChannel<T>> outputs, groovy.lang.Closure<java.lang.Integer> code)
group - The PGroup to useoutputs - The channels to send data to.code - A closure returning an index of the output channel to direct the data tovoid choice(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<T>> outputs,
groovy.lang.Closure<java.lang.Integer> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)outputs - The channels to send data to of the closure returns truecode - A closure returning an index of the output channel to direct the data tovoid choice(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowWriteChannel<T>> outputs, groovy.lang.Closure<java.lang.Integer> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to useoutputs - The channels to send data to.code - A closure returning an index of the output channel to direct the data tovoid choice(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowWriteChannel<T>> outputs, groovy.lang.Closure<java.lang.Integer> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to useoutputs - The channels to send data to.code - A closure returning an index of the output channel to direct the data tovoid separate(java.util.List<DataflowWriteChannel<?>> outputs, groovy.lang.Closure<java.util.List<java.lang.Object>> code)
outputs - The channels to send data to.code - A closure returning a list of values to pass to the output channels. Values are output to the output channels with identical index.void separate(Pool pool, java.util.List<DataflowWriteChannel<?>> outputs, groovy.lang.Closure<java.util.List<java.lang.Object>> code)
pool - The thread pool to useoutputs - The channels to send data to.code - A closure returning a list of values to pass to the output channels. Values are output to the output channels with identical index.void separate(PGroup group, java.util.List<DataflowWriteChannel<?>> outputs, groovy.lang.Closure<java.util.List<java.lang.Object>> code)
group - The PGroup to useoutputs - The channels to send data to.code - A closure returning a list of values to pass to the output channels. Values are output to the output channels with identical index.void separate(java.util.Map<java.lang.String,java.lang.Object> params,
java.util.List<DataflowWriteChannel<?>> outputs,
groovy.lang.Closure<java.util.List<java.lang.Object>> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)outputs - The channels to send data to.code - A closure returning a list of values to pass to the output channels. Values are output to the output channels with identical index.void separate(Pool pool, java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowWriteChannel<?>> outputs, groovy.lang.Closure<java.util.List<java.lang.Object>> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)pool - The thread pool to useoutputs - The channels to send data to.code - A closure returning a list of values to pass to the output channels. Values are output to the output channels with identical index.void separate(PGroup group, java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<DataflowWriteChannel<?>> outputs, groovy.lang.Closure<java.util.List<java.lang.Object>> code)
params - Additional parameters to initialize the operator with (e.g. listeners or maxForks)group - The PGroup to useoutputs - The channels to send data to.code - A closure returning a list of values to pass to the output channels. Values are output to the output channels with identical index.DataflowChannelEventListenerManager<T> getEventManager()
boolean isBound()
int length()