public class ActivityStubImpl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ActivityOptions |
options |
Modifier and Type | Method and Description |
---|---|
<T> T |
execute(java.lang.String activityName,
java.lang.Class<T> resultClass,
java.lang.Object... args)
Executes an activity by its type name and arguments.
|
<T> T |
execute(java.lang.String activityName,
java.lang.Class<T> resultClass,
java.lang.reflect.Type resultType,
java.lang.Object... args)
Executes an activity by its type name and arguments.
|
<R> Promise<R> |
executeAsync(java.lang.String activityName,
java.lang.Class<R> resultClass,
java.lang.Object... args)
Executes an activity asynchronously by its type name and arguments.
|
<R> Promise<R> |
executeAsync(java.lang.String activityName,
java.lang.Class<R> resultClass,
java.lang.reflect.Type resultType,
java.lang.Object... args)
Executes an activity asynchronously by its type name and arguments.
|
protected final ActivityOptions options
public <R> Promise<R> executeAsync(java.lang.String activityName, java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object... args)
ActivityStub
executeAsync
in interface ActivityStub
R
- return type.activityName
- name of an activity type to execute.resultClass
- the expected return class of the activity. Use Void.class for activities
that return void type.resultType
- the expected return type of the activity. Differs from resultClass for
generic types.args
- arguments of the activity.public <T> T execute(java.lang.String activityName, java.lang.Class<T> resultClass, java.lang.Object... args)
ActivityStub
execute
in interface ActivityStub
T
- return type.activityName
- name of an activity type to execute.resultClass
- the expected return type of the activity. Use Void.class for activities that
return void type.args
- arguments of the activity.public <T> T execute(java.lang.String activityName, java.lang.Class<T> resultClass, java.lang.reflect.Type resultType, java.lang.Object... args)
ActivityStub
execute
in interface ActivityStub
T
- return type.activityName
- name of an activity type to execute.resultClass
- the expected return class of the activity. Use Void.class for activities
that return void type.resultType
- the expected return type of the activity. Differs from resultClass for
generic types.args
- arguments of the activity.public <R> Promise<R> executeAsync(java.lang.String activityName, java.lang.Class<R> resultClass, java.lang.Object... args)
ActivityStub
executeAsync
in interface ActivityStub
R
- return type.activityName
- name of an activity type to execute.resultClass
- the expected return type of the activity. Use Void.class for activities that
return void type.args
- arguments of the activity.