public interface WorkflowInterceptor
Modifier and Type | Interface and Description |
---|---|
static class |
WorkflowInterceptor.WorkflowResult<R> |
Modifier and Type | Method and Description |
---|---|
boolean |
await(java.time.Duration timeout,
java.lang.String reason,
java.util.function.Supplier<java.lang.Boolean> unblockCondition) |
void |
await(java.lang.String reason,
java.util.function.Supplier<java.lang.Boolean> unblockCondition) |
Promise<java.lang.Void> |
cancelWorkflow(WorkflowExecution execution) |
void |
continueAsNew(java.util.Optional<java.lang.String> workflowType,
java.util.Optional<ContinueAsNewOptions> options,
java.lang.Object[] args) |
<R> Promise<R> |
executeActivity(java.lang.String activityName,
java.lang.Class<R> resultClass,
java.lang.reflect.Type resultType,
java.lang.Object[] args,
ActivityOptions options) |
<R> WorkflowInterceptor.WorkflowResult<R> |
executeChildWorkflow(java.lang.String workflowType,
java.lang.Class<R> resultClass,
java.lang.reflect.Type resultType,
java.lang.Object[] args,
ChildWorkflowOptions options) |
<R> Promise<R> |
executeLocalActivity(java.lang.String activityName,
java.lang.Class<R> resultClass,
java.lang.reflect.Type resultType,
java.lang.Object[] args,
LocalActivityOptions options) |
int |
getVersion(java.lang.String changeID,
int minSupported,
int maxSupported) |
<R> R |
mutableSideEffect(java.lang.String id,
java.lang.Class<R> resultClass,
java.lang.reflect.Type resultType,
java.util.function.BiPredicate<R,R> updated,
Functions.Func<R> func) |
java.util.Random |
newRandom() |
Promise<java.lang.Void> |
newTimer(java.time.Duration duration) |
java.util.UUID |
randomUUID() |
void |
registerQuery(java.lang.String queryType,
java.lang.reflect.Type[] argTypes,
Functions.Func1<java.lang.Object[],java.lang.Object> callback) |
<R> R |
sideEffect(java.lang.Class<R> resultClass,
java.lang.reflect.Type resultType,
Functions.Func<R> func) |
Promise<java.lang.Void> |
signalExternalWorkflow(WorkflowExecution execution,
java.lang.String signalName,
java.lang.Object[] args) |
void |
sleep(java.time.Duration duration) |
void |
upsertSearchAttributes(java.util.Map<java.lang.String,java.lang.Object> searchAttributes) |
<R> Promise<R> executeActivity(java.lang.String activityName, java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object[] args, ActivityOptions options)
<R> Promise<R> executeLocalActivity(java.lang.String activityName, java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object[] args, LocalActivityOptions options)
<R> WorkflowInterceptor.WorkflowResult<R> executeChildWorkflow(java.lang.String workflowType, java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object[] args, ChildWorkflowOptions options)
java.util.Random newRandom()
Promise<java.lang.Void> signalExternalWorkflow(WorkflowExecution execution, java.lang.String signalName, java.lang.Object[] args)
Promise<java.lang.Void> cancelWorkflow(WorkflowExecution execution)
void sleep(java.time.Duration duration)
boolean await(java.time.Duration timeout, java.lang.String reason, java.util.function.Supplier<java.lang.Boolean> unblockCondition)
void await(java.lang.String reason, java.util.function.Supplier<java.lang.Boolean> unblockCondition)
Promise<java.lang.Void> newTimer(java.time.Duration duration)
<R> R sideEffect(java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, Functions.Func<R> func)
<R> R mutableSideEffect(java.lang.String id, java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.util.function.BiPredicate<R,R> updated, Functions.Func<R> func)
int getVersion(java.lang.String changeID, int minSupported, int maxSupported)
void continueAsNew(java.util.Optional<java.lang.String> workflowType, java.util.Optional<ContinueAsNewOptions> options, java.lang.Object[] args)
void registerQuery(java.lang.String queryType, java.lang.reflect.Type[] argTypes, Functions.Func1<java.lang.Object[],java.lang.Object> callback)
java.util.UUID randomUUID()
void upsertSearchAttributes(java.util.Map<java.lang.String,java.lang.Object> searchAttributes)