|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Closure
groovyx.gpars.DataflowMessagingRunnable
public abstract class DataflowMessagingRunnable
Represents a multi-argument Closure when using GPars dataflow operators and selectors through the Java API. The doRun() method is meant to be defined by implementers to specify the closure body.
| Field Summary | |
|---|---|
private java.lang.Class[] |
defaultParamTypes
|
private int |
numberOfParameters
|
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 | |
|---|---|
protected |
DataflowMessagingRunnable(int numberOfParameters)
|
protected |
DataflowMessagingRunnable(java.lang.Object owner,
int numberOfParameters)
|
| Method Summary | |
|---|---|
java.lang.Object |
call()
|
java.lang.Object |
call(java.lang.Object... args)
|
protected abstract void |
doRun(java.lang.Object... arguments)
Defines the action performed by the Runnable |
int |
getMaximumNumberOfParameters()
|
DataflowProcessor |
getOwningProcessor()
Retrieves the owning processor (operator or selector) giving the DataflowMessagingRunnable a way to call methods like bindOutput() |
java.lang.Class[] |
getParameterTypes()
Returns types expected by the Runnable. |
| Methods inherited from class groovy.lang.Closure |
|---|
asWritable, call, clone, curry, curry, dehydrate, getDelegate, getDirective, getOwner, 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 java.lang.Class[] defaultParamTypes
private final int numberOfParameters
| Constructor Detail |
|---|
protected DataflowMessagingRunnable(int numberOfParameters)
protected DataflowMessagingRunnable(java.lang.Object owner,
int numberOfParameters)
| Method Detail |
|---|
public DataflowProcessor getOwningProcessor()
public int getMaximumNumberOfParameters()
getMaximumNumberOfParameters in class groovy.lang.Closurepublic java.lang.Class[] getParameterTypes()
getParameterTypes in class groovy.lang.Closurepublic final java.lang.Object call()
call in interface java.util.concurrent.Callablecall in class groovy.lang.Closurepublic final java.lang.Object call(java.lang.Object... args)
call in class groovy.lang.Closureprotected abstract void doRun(java.lang.Object... arguments)
arguments - The parameters passed from the caller to the closure
|
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 | |||||||||