Package com.cloudbees.groovy.cps.impl
Class Caller
java.lang.Object
com.cloudbees.groovy.cps.impl.Caller
As a crude way to distinguish asynchronous caller vs synchronous caller,
remember the method call about to happen so that the callee can check
if it is invoked by asynchronous caller or not.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAsynchronous(Object receiver, String method) static booleanisAsynchronous(Object receiver, String method, Object arg1) static booleanisAsynchronous(Object receiver, String method, Object... args) Checks if the method is called from asynchronous CPS transformed code.static booleanisAsynchronous(Object receiver, String method, Object arg1, Object arg2)
-
Constructor Details
-
Caller
public Caller()
-
-
Method Details
-
isAsynchronous
Checks if the method is called from asynchronous CPS transformed code.This method must be the first call in the function body.
-
isAsynchronous
-
isAsynchronous
-
isAsynchronous
-