groovyx.gpars
Class ReactorMessagingRunnable<T,V>
java.lang.Object
  
groovy.lang.GroovyObjectSupport
      
groovy.lang.Closure
          
groovyx.gpars.ReactorMessagingRunnable<T,V>
- All Implemented Interfaces: 
 - groovy.lang.GroovyObject, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable
 
public abstract class ReactorMessagingRunnable<T,V>
- extends groovy.lang.Closure
 
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.
- Author:
 
  - Vaclav Pech
 
- See Also:
 - Serialized Form
 
 
| Fields inherited from class groovy.lang.Closure | 
DELEGATE_FIRST, DELEGATE_ONLY, DONE, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF | 
 
 
 
| Methods inherited from class groovy.lang.Closure | 
asWritable, clone, curry, getDelegate, getDirective, getOwner, getProperty, getResolveStrategy, getThisObject, isCase, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException | 
 
| 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 | 
 
serialVersionUID
private static final long serialVersionUID
- See Also:
 - Constant Field Values
 
PARAMETER_TYPES
private static final java.lang.Class<?>[] PARAMETER_TYPES
REACTOR_MESSAGING_RUNNABLE_NEED_EXACTLY_ONE_ARGUMENT_TO_RUN
private static final java.lang.String REACTOR_MESSAGING_RUNNABLE_NEED_EXACTLY_ONE_ARGUMENT_TO_RUN
- See Also:
 - Constant Field Values
 
ReactorMessagingRunnable
protected ReactorMessagingRunnable()
ReactorMessagingRunnable
protected ReactorMessagingRunnable(java.lang.Object owner)
getMaximumNumberOfParameters
public final int getMaximumNumberOfParameters()
- Overrides:
 getMaximumNumberOfParameters in class groovy.lang.Closure
 
 
getParameterTypes
public final java.lang.Class<?>[] getParameterTypes()
- Overrides:
 getParameterTypes in class groovy.lang.Closure
 
 
call
public final java.lang.Object call()
- Overrides:
 call in class groovy.lang.Closure
 
 
call
public final java.lang.Object call(java.lang.Object[] args)
- Overrides:
 call in class groovy.lang.Closure
 
 
call
public final java.lang.Object call(java.lang.Object arguments)
- Overrides:
 call in class groovy.lang.Closure
 
 
doRun
protected abstract V doRun(T argument)
- Defines the action performed by the Runnable
- Parameters:
 argument - The parameter passed from the caller to the closure
- Returns:
 - The result to return to the caller of the closure and thus to send as a reply from the ReactiveActor