public abstract class MessagingRunnable<T>
extends groovy.lang.Closure
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
MESSAGING_RUNNABLE_NEED_EXACTLY_ONE_ARGUMENT_TO_RUN |
private static java.lang.Class[] |
PARAMETER_TYPES |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
protected |
MessagingRunnable() |
protected |
MessagingRunnable(java.lang.Object owner) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call() |
java.lang.Object |
call(java.lang.Object arguments) |
java.lang.Object |
call(java.lang.Object[] args) |
protected abstract void |
doRun(T argument)
Defines the action performed by the Runnable
|
int |
getMaximumNumberOfParameters() |
java.lang.Class[] |
getParameterTypes() |
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
private static final long serialVersionUID
private static final java.lang.Class[] PARAMETER_TYPES
private static final java.lang.String MESSAGING_RUNNABLE_NEED_EXACTLY_ONE_ARGUMENT_TO_RUN
protected MessagingRunnable()
protected MessagingRunnable(java.lang.Object owner)
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 void doRun(T argument)
argument
- The parameter passed from the caller to the closure