|
||||||||||
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.ReactorMessagingRunnable<T,V>
public abstract class ReactorMessagingRunnable<T,V>
Represents a single-argument Closure when using GPars ReactiveActors (reactors) through the Java API. The doRun() method is meant to be defined by implementers to specify the closure body.
Field Summary | |
---|---|
private static java.lang.Class<?>[] |
PARAMETER_TYPES
|
private static java.lang.String |
REACTOR_MESSAGING_RUNNABLE_NEED_EXACTLY_ONE_ARGUMENT_TO_RUN
|
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 |
ReactorMessagingRunnable()
|
protected |
ReactorMessagingRunnable(java.lang.Object owner)
|
Method Summary | |
---|---|
java.lang.Object |
call()
|
java.lang.Object |
call(java.lang.Object arguments)
|
java.lang.Object |
call(java.lang.Object[] args)
|
protected abstract V |
doRun(T argument)
Defines the action performed by the Runnable |
int |
getMaximumNumberOfParameters()
|
java.lang.Class<?>[] |
getParameterTypes()
|
Methods inherited from class groovy.lang.Closure |
---|
asWritable, 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 static final java.lang.Class<?>[] PARAMETER_TYPES
private static final java.lang.String REACTOR_MESSAGING_RUNNABLE_NEED_EXACTLY_ONE_ARGUMENT_TO_RUN
Constructor Detail |
---|
protected ReactorMessagingRunnable()
protected ReactorMessagingRunnable(java.lang.Object owner)
Method Detail |
---|
public final int getMaximumNumberOfParameters()
getMaximumNumberOfParameters
in class groovy.lang.Closure
public final java.lang.Class<?>[] getParameterTypes()
getParameterTypes
in class groovy.lang.Closure
public final java.lang.Object call()
call
in interface java.util.concurrent.Callable
call
in class groovy.lang.Closure
public final java.lang.Object call(java.lang.Object[] args)
call
in class groovy.lang.Closure
public final java.lang.Object call(java.lang.Object arguments)
call
in class groovy.lang.Closure
protected abstract V doRun(T argument)
argument
- The parameter 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 |