|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport groovy.lang.Closure groovyx.gpars.dataflow.impl.SelectCallback<T>
public final class SelectCallback<T>
A closure registered with all the input channels on the wheneverBound() event to inform the Select about a value being available in a particular channel.
Field Summary | |
---|---|
private DataflowReadChannel<? extends T> |
channel
|
private int |
index
|
private static long |
serialVersionUID
|
Fields inherited from class groovy.lang.Closure |
---|
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF |
Constructor Summary | |
---|---|
SelectCallback(java.lang.Object owner,
int index,
DataflowReadChannel<? extends T> channel)
|
Method Summary | |
---|---|
java.lang.Object |
call(java.lang.Object[] args)
Invoked by the channel when a value has been bound to it and is available for consumption |
Methods inherited from class groovy.lang.Closure |
---|
asWritable, call, call, clone, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline |
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, invokeMethod, setMetaClass |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final int index
private final DataflowReadChannel<? extends T> channel
Constructor Detail |
---|
public SelectCallback(java.lang.Object owner, int index, DataflowReadChannel<? extends T> channel)
owner
- The SelectBase instance to notifyindex
- The index of the channel this SelectCallback instance representschannel
- The channel represented by this SelectCallback instanceMethod Detail |
---|
public java.lang.Object call(java.lang.Object[] args)
call
in class groovy.lang.Closure
args
- Holds the value, but we do not work with the value here
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |