|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Closure
gpars.actor.impl.SequentialProcessingActor.MultiMessageReaction
class SequentialProcessingActor.MultiMessageReaction extends groovy.lang.Closure
Enables multiple argument closures to be passed to react(). The MultiMessageReaction class takes just one argument and will wrap the intended closure. After invoking the MultiMessageReaction will curry the obtained value onto the wrapped multi-argument closure. The whole process of wrapping a multi-argument closure with MultiMessageReaction class instances is repeated until all arguments are curried. At that moment the original closure, now worth all arguments curried, gets invoked.
Field Summary |
---|
Fields inherited from class groovy.lang.Closure | |
---|---|
OWNER_FIRST, DELEGATE_FIRST, OWNER_ONLY, DELEGATE_ONLY, TO_SELF, DONE, SKIP |
Constructor Summary | |
private SequentialProcessingActor.MultiMessageReaction(Closure code, int maxNumberOfParameters, long timeout, List localSenders)
|
Method Summary | |
---|---|
Object
|
doCall(Object args)
|
int
|
getMaximumNumberOfParameters()
|
Class[]
|
getParameterTypes()
|
Methods inherited from class groovy.lang.Closure | |
---|---|
run, setProperty, getProperty, clone, getParameterTypes, getOwner, setDelegate, getDelegate, call, call, call, setResolveStrategy, isCase, getMaximumNumberOfParameters, getDirective, asWritable, getResolveStrategy, getThisObject, curry, setDirective, getMetaClass, invokeMethod, setMetaClass, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class groovy.lang.GroovyObjectSupport | |
---|---|
setProperty, getProperty, getMetaClass, invokeMethod, setMetaClass, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
private SequentialProcessingActor.MultiMessageReaction(Closure code, int maxNumberOfParameters, long timeout, List localSenders)
Method Detail |
---|
public Object doCall(Object args)
@Override public int getMaximumNumberOfParameters()
@Override public Class[] getParameterTypes()
Groovy Documentation