|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface DataflowReadChannel
A common interface for all dataflow variables, streams or queues
Method Summary | |
---|---|
void
|
binaryChoice(DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
Directs the output to one of the two output channels depending on the boolean result of the provided closure. |
DataflowReadChannel
|
chainWith(groovy.lang.Closure closure)
Creates and attaches a new operator processing values from the channel |
DataflowReadChannel
|
chainWith(Pool pool, groovy.lang.Closure closure)
Creates and attaches a new operator processing values from the channel |
DataflowReadChannel
|
chainWith(PGroup group, groovy.lang.Closure closure)
Creates and attaches a new operator processing values from the channel |
DataflowReadChannel
|
chainWith(java.util.Map params, groovy.lang.Closure closure)
Creates and attaches a new operator processing values from the channel |
DataflowReadChannel
|
chainWith(Pool pool, java.util.Map params, groovy.lang.Closure closure)
Creates and attaches a new operator processing values from the channel |
DataflowReadChannel
|
chainWith(PGroup group, java.util.Map params, groovy.lang.Closure closure)
Creates and attaches a new operator processing values from the channel |
void
|
choice(java.util.List outputs, groovy.lang.Closure 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 outputs, groovy.lang.Closure 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 outputs, groovy.lang.Closure code)
Directs the output to one of the output channels depending on the int result of the provided closure. |
void
|
choice(java.util.Map params, java.util.List outputs, groovy.lang.Closure 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 params, java.util.List outputs, groovy.lang.Closure 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 params, java.util.List outputs, groovy.lang.Closure code)
Directs the output to one of the output channels depending on the int result of the provided closure. |
DataflowReadChannel
|
filter(groovy.lang.Closure closure)
Creates and attaches a new operator that will filter data using the provided closure |
DataflowReadChannel
|
filter(Pool pool, groovy.lang.Closure closure)
Creates and attaches a new operator that will filter data using the provided closure |
DataflowReadChannel
|
filter(PGroup group, groovy.lang.Closure closure)
Creates and attaches a new operator that will filter data using the provided closure |
DataflowReadChannel
|
filter(java.util.Map params, groovy.lang.Closure closure)
Creates and attaches a new operator that will filter data using the provided closure |
DataflowReadChannel
|
filter(Pool pool, java.util.Map params, groovy.lang.Closure closure)
Creates and attaches a new operator that will filter data using the provided closure |
DataflowReadChannel
|
filter(PGroup group, java.util.Map params, groovy.lang.Closure closure)
Creates and attaches a new operator that will filter data using the provided closure |
DataflowChannelEventListenerManager
|
getEventManager()
Retrieves the event manager object of this channel |
java.lang.Object
|
getVal()
Reads the current value of the channel. |
java.lang.Object
|
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 target)
Makes the output of the current channel to be an input for the specified channel |
void
|
into(Pool pool, DataflowWriteChannel target)
Makes the output of the current channel to be an input for the specified channel |
void
|
into(PGroup group, DataflowWriteChannel target)
Makes the output of the current channel to be an input for the specified channel |
void
|
into(java.util.Map params, DataflowWriteChannel target)
Makes the output of the current channel to be an input for the specified channel |
void
|
into(Pool pool, java.util.Map params, DataflowWriteChannel target)
Makes the output of the current channel to be an input for the specified channel |
void
|
into(PGroup group, java.util.Map params, DataflowWriteChannel 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 |
DataflowReadChannel
|
merge(DataflowReadChannel other, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(Pool pool, DataflowReadChannel other, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(PGroup group, DataflowReadChannel other, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(java.util.List others, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(Pool pool, java.util.List others, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(PGroup group, java.util.List others, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(Pool pool, java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(PGroup group, java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(java.util.Map params, java.util.List others, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(Pool pool, java.util.Map params, java.util.List others, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
merge(PGroup group, java.util.Map params, java.util.List others, groovy.lang.Closure closure)
Merges channels together as inputs for a single dataflow operator. |
DataflowReadChannel
|
or(groovy.lang.Closure closure)
Creates and attaches a new operator processing values from the channel |
void
|
or(DataflowWriteChannel target)
Makes the output of the current channel to be an input for the specified channel |
DataflowExpression
|
poll()
Retrieves the value at the head of the buffer. |
Promise
|
rightShift(groovy.lang.Closure closure)
Schedule closure to be executed after data became available. |
void
|
separate(java.util.List outputs, groovy.lang.Closure code)
Allows the closure to output different values to different output channels. |
void
|
separate(Pool pool, java.util.List outputs, groovy.lang.Closure code)
Allows the closure to output different values to different output channels. |
void
|
separate(PGroup group, java.util.List outputs, groovy.lang.Closure code)
Allows the closure to output different values to different output channels. |
void
|
separate(java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
Allows the closure to output different values to different output channels. |
void
|
separate(Pool pool, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
Allows the closure to output different values to different output channels. |
void
|
separate(PGroup group, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
Allows the closure to output different values to different output channels. |
void
|
split(DataflowWriteChannel target1, DataflowWriteChannel target2)
Splits the output of the current channel to be an input for the specified channels |
void
|
split(Pool pool, DataflowWriteChannel target1, DataflowWriteChannel target2)
Splits the output of the current channel to be an input for the specified channels |
void
|
split(PGroup group, DataflowWriteChannel target1, DataflowWriteChannel target2)
Splits the output of the current channel to be an input for the specified channels |
void
|
split(java.util.List targets)
Makes the output of the current channel to be an input for the specified channels |
void
|
split(Pool pool, java.util.List targets)
Makes the output of the current channel to be an input for the specified channels |
void
|
split(PGroup group, java.util.List targets)
Makes the output of the current channel to be an input for the specified channels |
void
|
split(java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
Splits the output of the current channel to be an input for the specified channels |
void
|
split(Pool pool, java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
Splits the output of the current channel to be an input for the specified channels |
void
|
split(PGroup group, java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
Splits the output of the current channel to be an input for the specified channels |
void
|
split(java.util.Map params, java.util.List targets)
Makes the output of the current channel to be an input for the specified channels |
void
|
split(Pool pool, java.util.Map params, java.util.List targets)
Makes the output of the current channel to be an input for the specified channels |
void
|
split(PGroup group, java.util.Map params, java.util.List targets)
Makes the output of the current channel to be an input for the specified channels |
DataflowReadChannel
|
tap(DataflowWriteChannel target)
Taps into the pipeline. |
DataflowReadChannel
|
tap(Pool pool, DataflowWriteChannel target)
Taps into the pipeline. |
DataflowReadChannel
|
tap(PGroup group, DataflowWriteChannel target)
Taps into the pipeline. |
DataflowReadChannel
|
tap(java.util.Map params, DataflowWriteChannel target)
Taps into the pipeline. |
DataflowReadChannel
|
tap(Pool pool, java.util.Map params, DataflowWriteChannel target)
Taps into the pipeline. |
DataflowReadChannel
|
tap(PGroup group, java.util.Map params, DataflowWriteChannel target)
Taps into the pipeline. |
Promise
|
then(groovy.lang.Closure closure)
Schedule closure to be executed after data became available. |
Promise
|
then(Pool pool, groovy.lang.Closure closure)
Schedule closure to be executed after data becomes available. |
Promise
|
then(PGroup group, groovy.lang.Closure closure)
Schedule closure to be executed after data becomes available. |
void
|
whenBound(groovy.lang.Closure closure)
Schedule closure to be executed after data becomes available. |
void
|
whenBound(Pool pool, groovy.lang.Closure closure)
Schedule closure to be executed after data becomes available. |
void
|
whenBound(PGroup group, groovy.lang.Closure 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 |
void
|
wheneverBound(groovy.lang.Closure closure)
Send all pieces of data bound in the future to the provided stream when it becomes available |
void
|
wheneverBound(MessageStream stream)
Send all pieces of data bound in the future to the provided stream when it becomes available. |
Method Detail |
---|
public void binaryChoice(DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 branch
public void binaryChoice(Pool pool, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 branch
public void binaryChoice(PGroup group, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 branch
public void binaryChoice(java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 branch
public void binaryChoice(Pool pool, java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 branch
public void binaryChoice(PGroup group, java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure 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 branch
public DataflowReadChannel chainWith(groovy.lang.Closure closure)
closure
- The function to invoke on all incoming values as part of the new operator's body
- The type of values returned from the supplied closure
public DataflowReadChannel chainWith(Pool pool, groovy.lang.Closure closure)
pool
- The thread pool to useclosure
- The function to invoke on all incoming values as part of the new operator's body
- The type of values returned from the supplied closure
public DataflowReadChannel chainWith(PGroup group, groovy.lang.Closure closure)
group
- The PGroup to useclosure
- The function to invoke on all incoming values as part of the new operator's body
- The type of values returned from the supplied closure
public DataflowReadChannel chainWith(java.util.Map params, groovy.lang.Closure closure)
params
- 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
- The type of values returned from the supplied closure
public DataflowReadChannel chainWith(Pool pool, java.util.Map params, groovy.lang.Closure closure)
params
- 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
- The type of values returned from the supplied closure
public DataflowReadChannel chainWith(PGroup group, java.util.Map params, groovy.lang.Closure closure)
params
- 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
- The type of values returned from the supplied closure
public void choice(java.util.List outputs, groovy.lang.Closure 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 to
public void choice(Pool pool, java.util.List outputs, groovy.lang.Closure 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 to
public void choice(PGroup group, java.util.List outputs, groovy.lang.Closure 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 to
public void choice(java.util.Map params, java.util.List outputs, groovy.lang.Closure 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 to
public void choice(Pool pool, java.util.Map params, java.util.List outputs, groovy.lang.Closure 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 to
public void choice(PGroup group, java.util.Map params, java.util.List outputs, groovy.lang.Closure 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 to
public DataflowReadChannel filter(groovy.lang.Closure closure)
closure
- The filter function to invoke on all incoming values to decide whether to pass the value on or not
public DataflowReadChannel filter(Pool pool, groovy.lang.Closure 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 not
public DataflowReadChannel filter(PGroup group, groovy.lang.Closure closure)
group
- The PGroup to useclosure
- The filter function to invoke on all incoming values to decide whether to pass the value on or not
public DataflowReadChannel filter(java.util.Map params, groovy.lang.Closure 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 not
public DataflowReadChannel filter(Pool pool, java.util.Map params, groovy.lang.Closure 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 not
public DataflowReadChannel filter(PGroup group, java.util.Map params, groovy.lang.Closure 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 not
public DataflowChannelEventListenerManager getEventManager()
public java.lang.Object getVal()
public java.lang.Object getVal(long timeout, java.util.concurrent.TimeUnit units)
timeout
- The timeout valueunits
- Units for the timeout
public void getValAsync(MessageStream callback)
callback
- An actor to send the bound value to.
public 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.
public void into(DataflowWriteChannel target)
target
- The channel to copy data into
public void into(Pool pool, DataflowWriteChannel target)
pool
- The thread pool to usetarget
- The channel to copy data into
public void into(PGroup group, DataflowWriteChannel target)
group
- The PGroup to usetarget
- The channel to copy data into
public void into(java.util.Map params, DataflowWriteChannel target)
params
- Additional parameters to initialize the operator with (e.g. listeners or maxForks)target
- The channel to copy data into
public void into(Pool pool, java.util.Map params, DataflowWriteChannel 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 into
public void into(PGroup group, java.util.Map params, DataflowWriteChannel target)
params
- Additional parameters to initialize the operator with (e.g. listeners or maxForks)group
- The PGroup to usetarget
- The channel to copy data into
public boolean isBound()
public int length()
public DataflowReadChannel merge(DataflowReadChannel other, groovy.lang.Closure closure)
other
- The channel to merge with
- The type of values passed between the channelsclosure
- 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.
public DataflowReadChannel merge(Pool pool, DataflowReadChannel other, groovy.lang.Closure closure)
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.
- The type of values passed between the channels
public DataflowReadChannel merge(PGroup group, DataflowReadChannel other, groovy.lang.Closure closure)
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.
- The type of values passed between the channels
public DataflowReadChannel merge(java.util.List others, groovy.lang.Closure closure)
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.
- The type of values passed between the channels
public DataflowReadChannel merge(Pool pool, java.util.List others, groovy.lang.Closure closure)
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.
- The type of values passed between the channels
public DataflowReadChannel merge(PGroup group, java.util.List others, groovy.lang.Closure closure)
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.
- The type of values passed between the channels
public DataflowReadChannel merge(java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
params
- Additional parameters to initialize the operator with (e.g. listeners or maxForks)other
- The channel to merge with
- The type of values passed between the channelsclosure
- 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.
public DataflowReadChannel merge(Pool pool, java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
params
- 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.
- The type of values passed between the channels
public DataflowReadChannel merge(PGroup group, java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
params
- 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.
- The type of values passed between the channels
public DataflowReadChannel merge(java.util.Map params, java.util.List others, groovy.lang.Closure closure)
params
- 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.
- The type of values passed between the channels
public DataflowReadChannel merge(Pool pool, java.util.Map params, java.util.List others, groovy.lang.Closure closure)
params
- 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.
- The type of values passed between the channels
public DataflowReadChannel merge(PGroup group, java.util.Map params, java.util.List others, groovy.lang.Closure closure)
params
- 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.
- The type of values passed between the channels
public DataflowReadChannel or(groovy.lang.Closure closure)
closure
- The function to invoke on all incoming values as part of the new operator's body
- The type of values returned from the supplied closure
public void or(DataflowWriteChannel target)
target
- The channel to copy data into
@SuppressWarnings({"ClassReferencesSubclass"}) public DataflowExpression poll()
public Promise rightShift(groovy.lang.Closure closure)
closure
- closure to execute when data becomes available. The closure should take at most one argument.
public void separate(java.util.List outputs, groovy.lang.Closure 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.
public void separate(Pool pool, java.util.List outputs, groovy.lang.Closure 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.
public void separate(PGroup group, java.util.List outputs, groovy.lang.Closure 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.
public void separate(java.util.Map params, java.util.List outputs, groovy.lang.Closure 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.
public void separate(Pool pool, java.util.Map params, java.util.List outputs, groovy.lang.Closure 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.
public void separate(PGroup group, java.util.Map params, java.util.List outputs, groovy.lang.Closure 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.
public void split(DataflowWriteChannel target1, DataflowWriteChannel target2)
target1
- The first channel to copy data intotarget2
- The second channel to copy data into
public void split(Pool pool, DataflowWriteChannel target1, DataflowWriteChannel target2)
pool
- The thread pool to usetarget1
- The first channel to copy data intotarget2
- The second channel to copy data into
public void split(PGroup group, DataflowWriteChannel target1, DataflowWriteChannel target2)
group
- The PGroup to usetarget1
- The first channel to copy data intotarget2
- The second channel to copy data into
public void split(java.util.List targets)
targets
- The channels to copy data into
public void split(Pool pool, java.util.List targets)
pool
- The thread pool to usetargets
- The channels to copy data into
public void split(PGroup group, java.util.List targets)
group
- The PGroup to usetargets
- The channels to copy data into
public void split(java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel 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 into
public void split(Pool pool, java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel 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 into
public void split(PGroup group, java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel 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 into
public void split(java.util.Map params, java.util.List targets)
params
- Additional parameters to initialize the operator with (e.g. listeners or maxForks)targets
- The channels to copy data into
public void split(Pool pool, java.util.Map params, java.util.List 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 into
public void split(PGroup group, java.util.Map params, java.util.List targets)
params
- Additional parameters to initialize the operator with (e.g. listeners or maxForks)group
- The PGroup to usetargets
- The channels to copy data into
public DataflowReadChannel tap(DataflowWriteChannel target)
target
- The channel to tap data into
public DataflowReadChannel tap(Pool pool, DataflowWriteChannel target)
pool
- The thread pool to usetarget
- The channel to tap data into
public DataflowReadChannel tap(PGroup group, DataflowWriteChannel target)
group
- The PGroup to usetarget
- The channel to tap data into
public DataflowReadChannel tap(java.util.Map params, DataflowWriteChannel target)
params
- Additional parameters to initialize the operator with (e.g. listeners or maxForks)target
- The channel to tap data into
public DataflowReadChannel tap(Pool pool, java.util.Map params, DataflowWriteChannel 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 into
public DataflowReadChannel tap(PGroup group, java.util.Map params, DataflowWriteChannel 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
public Promise then(groovy.lang.Closure closure)
closure
- closure to execute when data becomes available. The closure should take at most one argument.
public Promise then(Pool pool, groovy.lang.Closure 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.
public Promise then(PGroup group, groovy.lang.Closure 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.
public void whenBound(groovy.lang.Closure closure)
closure
- closure to execute when data becomes available. The closure should take at most one argument.
public void whenBound(Pool pool, groovy.lang.Closure 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.
public void whenBound(PGroup group, groovy.lang.Closure 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.
public void whenBound(MessageStream stream)
stream
- stream where to send result
public void wheneverBound(groovy.lang.Closure closure)
closure
- closure to execute when data becomes available. The closure should take at most one argument.
public void wheneverBound(MessageStream stream)
stream
- stream where to send result
Copyright © 2008–2012 Václav Pech. All Rights Reserved.