Groovy Documentation

gpars.actor.impl
Class SequentialProcessingActor.MultiMessageReaction

java.lang.Object
  groovy.lang.GroovyObjectSupport
      groovy.lang.Closure
          gpars.actor.impl.SequentialProcessingActor.MultiMessageReaction
All Implemented Interfaces:
org.codehaus.groovy.runtime.GeneratedClosure

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.

author:
Vaclav Pech


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

SequentialProcessingActor.MultiMessageReaction

private SequentialProcessingActor.MultiMessageReaction(Closure code, int maxNumberOfParameters, long timeout, List localSenders)


 
Method Detail

doCall

public Object doCall(Object args)


getMaximumNumberOfParameters

@Override
public int getMaximumNumberOfParameters()


getParameterTypes

@Override
public Class[] getParameterTypes()


 

Groovy Documentation