|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
groovyx.gpars.dataflow.DataflowReadChannel groovyx.gpars.dataflow.SelectableChannel
public interface DataflowReadChannel extends SelectableChannel
A common interface for all dataflow variables, streams or queues
Method Summary | |
---|---|
void
|
binaryChoice(DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
|
void
|
binaryChoice(Pool pool, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
|
void
|
binaryChoice(PGroup group, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
|
void
|
binaryChoice(java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
|
void
|
binaryChoice(Pool pool, java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
|
void
|
binaryChoice(PGroup group, java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
|
DataflowReadChannel
|
chainWith(groovy.lang.Closure closure)
|
DataflowReadChannel
|
chainWith(Pool pool, groovy.lang.Closure closure)
|
DataflowReadChannel
|
chainWith(PGroup group, groovy.lang.Closure closure)
|
DataflowReadChannel
|
chainWith(java.util.Map params, groovy.lang.Closure closure)
|
DataflowReadChannel
|
chainWith(Pool pool, java.util.Map params, groovy.lang.Closure closure)
|
DataflowReadChannel
|
chainWith(PGroup group, java.util.Map params, groovy.lang.Closure closure)
|
void
|
choice(java.util.List outputs, groovy.lang.Closure code)
|
void
|
choice(Pool pool, java.util.List outputs, groovy.lang.Closure code)
|
void
|
choice(PGroup group, java.util.List outputs, groovy.lang.Closure code)
|
void
|
choice(java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
|
void
|
choice(Pool pool, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
|
void
|
choice(PGroup group, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
|
DataflowReadChannel
|
filter(groovy.lang.Closure closure)
|
DataflowReadChannel
|
filter(Pool pool, groovy.lang.Closure closure)
|
DataflowReadChannel
|
filter(PGroup group, groovy.lang.Closure closure)
|
DataflowReadChannel
|
filter(java.util.Map params, groovy.lang.Closure closure)
|
DataflowReadChannel
|
filter(Pool pool, java.util.Map params, groovy.lang.Closure closure)
|
DataflowReadChannel
|
filter(PGroup group, java.util.Map params, groovy.lang.Closure closure)
|
DataflowChannelEventListenerManager
|
getEventManager()
Reports the current number of elements in the channel |
java.lang.Object
|
getVal()
|
java.lang.Object
|
getVal(long timeout, java.util.concurrent.TimeUnit units)
|
void
|
getValAsync(MessageStream callback)
|
void
|
getValAsync(java.lang.Object attachment, MessageStream callback)
Reads the current value of the channel. |
void
|
into(DataflowWriteChannel target)
|
void
|
into(Pool pool, DataflowWriteChannel target)
|
void
|
into(PGroup group, DataflowWriteChannel target)
|
void
|
into(java.util.Map params, DataflowWriteChannel target)
|
void
|
into(Pool pool, java.util.Map params, DataflowWriteChannel target)
|
void
|
into(PGroup group, java.util.Map params, DataflowWriteChannel target)
Splits the output of the current channel to be an input for the specified channels |
boolean
|
isBound()
|
int
|
length()
|
DataflowReadChannel
|
merge(DataflowReadChannel other, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(Pool pool, DataflowReadChannel other, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(PGroup group, DataflowReadChannel other, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(java.util.List others, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(Pool pool, java.util.List others, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(PGroup group, java.util.List others, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(Pool pool, java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(PGroup group, java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(java.util.Map params, java.util.List others, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(Pool pool, java.util.Map params, java.util.List others, groovy.lang.Closure closure)
|
DataflowReadChannel
|
merge(PGroup group, java.util.Map params, java.util.List others, groovy.lang.Closure closure)
|
DataflowReadChannel
|
or(groovy.lang.Closure closure)
|
void
|
or(DataflowWriteChannel target)
|
Promise
|
rightShift(groovy.lang.Closure closure)
Schedule closure to be executed after data becomes available. |
void
|
separate(java.util.List outputs, groovy.lang.Closure code)
|
void
|
separate(Pool pool, java.util.List outputs, groovy.lang.Closure code)
|
void
|
separate(PGroup group, java.util.List outputs, groovy.lang.Closure code)
|
void
|
separate(java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
|
void
|
separate(Pool pool, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
|
void
|
separate(PGroup group, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
Check if value has been set already for this expression |
void
|
split(DataflowWriteChannel target1, DataflowWriteChannel target2)
|
void
|
split(Pool pool, DataflowWriteChannel target1, DataflowWriteChannel target2)
|
void
|
split(PGroup group, DataflowWriteChannel target1, DataflowWriteChannel target2)
Makes the output of the current channel to be an input for the specified channels |
void
|
split(java.util.List targets)
|
void
|
split(Pool pool, java.util.List targets)
|
void
|
split(PGroup group, java.util.List targets)
|
void
|
split(java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
|
void
|
split(Pool pool, java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
|
void
|
split(PGroup group, java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
|
void
|
split(java.util.Map params, java.util.List targets)
|
void
|
split(Pool pool, java.util.Map params, java.util.List targets)
|
void
|
split(PGroup group, java.util.Map params, java.util.List targets)
|
DataflowReadChannel
|
tap(DataflowWriteChannel target)
|
DataflowReadChannel
|
tap(Pool pool, DataflowWriteChannel target)
|
DataflowReadChannel
|
tap(PGroup group, DataflowWriteChannel target)
|
DataflowReadChannel
|
tap(java.util.Map params, DataflowWriteChannel target)
|
DataflowReadChannel
|
tap(Pool pool, java.util.Map params, DataflowWriteChannel target)
|
DataflowReadChannel
|
tap(PGroup group, java.util.Map params, DataflowWriteChannel target)
|
Promise
|
then(groovy.lang.Closure closure)
|
Promise
|
then(Pool pool, groovy.lang.Closure closure)
|
Promise
|
then(PGroup group, groovy.lang.Closure closure)
|
void
|
whenBound(groovy.lang.Closure closure)
|
void
|
whenBound(Pool pool, groovy.lang.Closure closure)
|
void
|
whenBound(PGroup group, groovy.lang.Closure closure)
|
void
|
whenBound(MessageStream stream)
|
Methods inherited from interface SelectableChannel | |
---|---|
poll, wheneverBound, wheneverBound |
Method Detail |
---|
public void binaryChoice(DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
public void binaryChoice(Pool pool, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
public void binaryChoice(PGroup group, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
public void binaryChoice(java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
public void binaryChoice(Pool pool, java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
public void binaryChoice(PGroup group, java.util.Map params, DataflowWriteChannel trueBranch, DataflowWriteChannel falseBranch, groovy.lang.Closure code)
public DataflowReadChannel chainWith(groovy.lang.Closure closure)
public DataflowReadChannel chainWith(Pool pool, groovy.lang.Closure closure)
public DataflowReadChannel chainWith(PGroup group, groovy.lang.Closure closure)
public DataflowReadChannel chainWith(java.util.Map params, groovy.lang.Closure closure)
public DataflowReadChannel chainWith(Pool pool, java.util.Map params, groovy.lang.Closure closure)
public DataflowReadChannel chainWith(PGroup group, java.util.Map params, groovy.lang.Closure closure)
public void choice(java.util.List outputs, groovy.lang.Closure code)
public void choice(Pool pool, java.util.List outputs, groovy.lang.Closure code)
public void choice(PGroup group, java.util.List outputs, groovy.lang.Closure code)
public void choice(java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
public void choice(Pool pool, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
public void choice(PGroup group, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
public DataflowReadChannel filter(groovy.lang.Closure closure)
public DataflowReadChannel filter(Pool pool, groovy.lang.Closure closure)
public DataflowReadChannel filter(PGroup group, groovy.lang.Closure closure)
public DataflowReadChannel filter(java.util.Map params, groovy.lang.Closure closure)
public DataflowReadChannel filter(Pool pool, java.util.Map params, groovy.lang.Closure closure)
public DataflowReadChannel filter(PGroup group, java.util.Map params, groovy.lang.Closure closure)
public DataflowChannelEventListenerManager getEventManager()
public java.lang.Object getVal()
public java.lang.Object getVal(long timeout, java.util.concurrent.TimeUnit units)
public void getValAsync(MessageStream callback)
public void getValAsync(java.lang.Object attachment, MessageStream callback)
public void into(DataflowWriteChannel target)
public void into(Pool pool, DataflowWriteChannel target)
public void into(PGroup group, DataflowWriteChannel target)
public void into(java.util.Map params, DataflowWriteChannel target)
public void into(Pool pool, java.util.Map params, DataflowWriteChannel target)
public void into(PGroup group, java.util.Map params, DataflowWriteChannel target)
target1
- The first channel to copy data intotarget2
- The second channel to copy data into
public boolean isBound()
public int length()
public DataflowReadChannel merge(DataflowReadChannel other, groovy.lang.Closure closure)
public DataflowReadChannel merge(Pool pool, DataflowReadChannel other, groovy.lang.Closure closure)
public DataflowReadChannel merge(PGroup group, DataflowReadChannel other, groovy.lang.Closure closure)
public DataflowReadChannel merge(java.util.List others, groovy.lang.Closure closure)
public DataflowReadChannel merge(Pool pool, java.util.List others, groovy.lang.Closure closure)
public DataflowReadChannel merge(PGroup group, java.util.List others, groovy.lang.Closure closure)
public DataflowReadChannel merge(java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
public DataflowReadChannel merge(Pool pool, java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
public DataflowReadChannel merge(PGroup group, java.util.Map params, DataflowReadChannel other, groovy.lang.Closure closure)
public DataflowReadChannel merge(java.util.Map params, java.util.List others, groovy.lang.Closure closure)
public DataflowReadChannel merge(Pool pool, java.util.Map params, java.util.List others, groovy.lang.Closure closure)
public DataflowReadChannel merge(PGroup group, java.util.Map params, java.util.List others, groovy.lang.Closure closure)
public DataflowReadChannel or(groovy.lang.Closure closure)
public void or(DataflowWriteChannel target)
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)
public void separate(Pool pool, java.util.List outputs, groovy.lang.Closure code)
public void separate(PGroup group, java.util.List outputs, groovy.lang.Closure code)
public void separate(java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
public void separate(Pool pool, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
public void separate(PGroup group, java.util.Map params, java.util.List outputs, groovy.lang.Closure code)
public void split(DataflowWriteChannel target1, DataflowWriteChannel target2)
public void split(Pool pool, DataflowWriteChannel target1, DataflowWriteChannel target2)
public void split(PGroup group, DataflowWriteChannel target1, DataflowWriteChannel target2)
pool
- The thread pool to usetargets
- The channels to copy data into
public void split(java.util.List targets)
public void split(Pool pool, java.util.List targets)
public void split(PGroup group, java.util.List targets)
public void split(java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
public void split(Pool pool, java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
public void split(PGroup group, java.util.Map params, DataflowWriteChannel target1, DataflowWriteChannel target2)
public void split(java.util.Map params, java.util.List targets)
public void split(Pool pool, java.util.Map params, java.util.List targets)
public void split(PGroup group, java.util.Map params, java.util.List targets)
public DataflowReadChannel tap(DataflowWriteChannel target)
public DataflowReadChannel tap(Pool pool, DataflowWriteChannel target)
public DataflowReadChannel tap(PGroup group, DataflowWriteChannel target)
public DataflowReadChannel tap(java.util.Map params, DataflowWriteChannel target)
public DataflowReadChannel tap(Pool pool, java.util.Map params, DataflowWriteChannel target)
public DataflowReadChannel tap(PGroup group, java.util.Map params, DataflowWriteChannel target)
public Promise then(groovy.lang.Closure closure)
public Promise then(Pool pool, groovy.lang.Closure closure)
public Promise then(PGroup group, groovy.lang.Closure closure)
public void whenBound(groovy.lang.Closure closure)
public void whenBound(Pool pool, groovy.lang.Closure closure)
public void whenBound(PGroup group, groovy.lang.Closure closure)
public void whenBound(MessageStream stream)
Copyright © 2008–2013 Václav Pech. All Rights Reserved.