Class WorkflowOutboundCallsInterceptorBase
java.lang.Object
io.temporal.common.interceptors.WorkflowOutboundCallsInterceptorBase
- All Implemented Interfaces:
WorkflowOutboundCallsInterceptor
public class WorkflowOutboundCallsInterceptorBase
extends Object
implements WorkflowOutboundCallsInterceptor
Convenience base class for WorkflowOutboundCallsInterceptor implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.temporal.common.interceptors.WorkflowOutboundCallsInterceptor
WorkflowOutboundCallsInterceptor.ActivityInput<R>, WorkflowOutboundCallsInterceptor.ActivityOutput<R>, WorkflowOutboundCallsInterceptor.CancelWorkflowInput, WorkflowOutboundCallsInterceptor.CancelWorkflowOutput, WorkflowOutboundCallsInterceptor.ChildWorkflowInput<R>, WorkflowOutboundCallsInterceptor.ChildWorkflowOutput<R>, WorkflowOutboundCallsInterceptor.ContinueAsNewInput, WorkflowOutboundCallsInterceptor.ExecuteNexusOperationInput<R>, WorkflowOutboundCallsInterceptor.ExecuteNexusOperationOutput<R>, WorkflowOutboundCallsInterceptor.LocalActivityInput<R>, WorkflowOutboundCallsInterceptor.LocalActivityOutput<R>, WorkflowOutboundCallsInterceptor.RegisterDynamicQueryHandlerInput, WorkflowOutboundCallsInterceptor.RegisterDynamicSignalHandlerInput, WorkflowOutboundCallsInterceptor.RegisterDynamicUpdateHandlerInput, WorkflowOutboundCallsInterceptor.RegisterQueryInput, WorkflowOutboundCallsInterceptor.RegisterSignalHandlersInput, WorkflowOutboundCallsInterceptor.RegisterUpdateHandlersInput, WorkflowOutboundCallsInterceptor.SignalExternalInput, WorkflowOutboundCallsInterceptor.SignalExternalOutput, WorkflowOutboundCallsInterceptor.SignalRegistrationRequest, WorkflowOutboundCallsInterceptor.UpdateRegistrationRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidlongcom.uber.m3.tally.ScopeIntercepts call to get the metric scope in a workflow.intgetVersion(String changeId, int minSupported, int maxSupported) <R> RmutableSideEffect(String id, Class<R> resultClass, Type resultType, BiPredicate<R, R> updated, Functions.Func<R> func) <R> RmutableSideEffect(String id, Class<R> resultClass, Type resultType, BiPredicate<R, R> updated, Functions.Func<R> func, MutableSideEffectOptions options) newChildThread(Runnable runnable, boolean detached, String name) Intercepts creation of a workflow child thread.newTimer(Duration duration, TimerOptions options) voidregisterDynamicQueryHandler(WorkflowOutboundCallsInterceptor.RegisterDynamicQueryHandlerInput input) voidregisterDynamicSignalHandler(WorkflowOutboundCallsInterceptor.RegisterDynamicSignalHandlerInput input) voidregisterDynamicUpdateHandler(WorkflowOutboundCallsInterceptor.RegisterDynamicUpdateHandlerInput input) voidvoidvoid<R> RsideEffect(Class<R> resultClass, Type resultType, Functions.Func<R> func) <R> RsideEffect(Class<R> resultClass, Type resultType, Functions.Func<R> func, SideEffectOptions options) voidvoidupsertMemo(Map<String, Object> memo) voidupsertSearchAttributes(Map<String, ?> searchAttributes) voidupsertTypedSearchAttributes(SearchAttributeUpdate<?>... searchAttributeUpdates)
-
Constructor Details
-
WorkflowOutboundCallsInterceptorBase
-
-
Method Details
-
executeActivity
public <R> WorkflowOutboundCallsInterceptor.ActivityOutput<R> executeActivity(WorkflowOutboundCallsInterceptor.ActivityInput<R> input) - Specified by:
executeActivityin interfaceWorkflowOutboundCallsInterceptor
-
executeLocalActivity
public <R> WorkflowOutboundCallsInterceptor.LocalActivityOutput<R> executeLocalActivity(WorkflowOutboundCallsInterceptor.LocalActivityInput<R> input) - Specified by:
executeLocalActivityin interfaceWorkflowOutboundCallsInterceptor
-
executeChildWorkflow
public <R> WorkflowOutboundCallsInterceptor.ChildWorkflowOutput<R> executeChildWorkflow(WorkflowOutboundCallsInterceptor.ChildWorkflowInput<R> input) - Specified by:
executeChildWorkflowin interfaceWorkflowOutboundCallsInterceptor
-
executeNexusOperation
public <R> WorkflowOutboundCallsInterceptor.ExecuteNexusOperationOutput<R> executeNexusOperation(WorkflowOutboundCallsInterceptor.ExecuteNexusOperationInput<R> input) - Specified by:
executeNexusOperationin interfaceWorkflowOutboundCallsInterceptor
-
newRandom
- Specified by:
newRandomin interfaceWorkflowOutboundCallsInterceptor
-
signalExternalWorkflow
public WorkflowOutboundCallsInterceptor.SignalExternalOutput signalExternalWorkflow(WorkflowOutboundCallsInterceptor.SignalExternalInput input) - Specified by:
signalExternalWorkflowin interfaceWorkflowOutboundCallsInterceptor
-
cancelWorkflow
public WorkflowOutboundCallsInterceptor.CancelWorkflowOutput cancelWorkflow(WorkflowOutboundCallsInterceptor.CancelWorkflowInput input) - Specified by:
cancelWorkflowin interfaceWorkflowOutboundCallsInterceptor
-
sleep
- Specified by:
sleepin interfaceWorkflowOutboundCallsInterceptor
-
await
-
await
- Specified by:
awaitin interfaceWorkflowOutboundCallsInterceptor
-
newTimer
- Specified by:
newTimerin interfaceWorkflowOutboundCallsInterceptor
-
newTimer
- Specified by:
newTimerin interfaceWorkflowOutboundCallsInterceptor
-
sideEffect
- Specified by:
sideEffectin interfaceWorkflowOutboundCallsInterceptor
-
sideEffect
public <R> R sideEffect(Class<R> resultClass, Type resultType, Functions.Func<R> func, SideEffectOptions options) - Specified by:
sideEffectin interfaceWorkflowOutboundCallsInterceptor
-
mutableSideEffect
public <R> R mutableSideEffect(String id, Class<R> resultClass, Type resultType, BiPredicate<R, R> updated, Functions.Func<R> func) - Specified by:
mutableSideEffectin interfaceWorkflowOutboundCallsInterceptor
-
mutableSideEffect
public <R> R mutableSideEffect(String id, Class<R> resultClass, Type resultType, BiPredicate<R, R> updated, Functions.Func<R> func, MutableSideEffectOptions options) - Specified by:
mutableSideEffectin interfaceWorkflowOutboundCallsInterceptor
-
getVersion
- Specified by:
getVersionin interfaceWorkflowOutboundCallsInterceptor
-
continueAsNew
- Specified by:
continueAsNewin interfaceWorkflowOutboundCallsInterceptor
-
registerQuery
- Specified by:
registerQueryin interfaceWorkflowOutboundCallsInterceptor
-
registerSignalHandlers
public void registerSignalHandlers(WorkflowOutboundCallsInterceptor.RegisterSignalHandlersInput input) - Specified by:
registerSignalHandlersin interfaceWorkflowOutboundCallsInterceptor
-
registerUpdateHandlers
public void registerUpdateHandlers(WorkflowOutboundCallsInterceptor.RegisterUpdateHandlersInput input) - Specified by:
registerUpdateHandlersin interfaceWorkflowOutboundCallsInterceptor
-
registerDynamicSignalHandler
public void registerDynamicSignalHandler(WorkflowOutboundCallsInterceptor.RegisterDynamicSignalHandlerInput input) - Specified by:
registerDynamicSignalHandlerin interfaceWorkflowOutboundCallsInterceptor
-
registerDynamicQueryHandler
public void registerDynamicQueryHandler(WorkflowOutboundCallsInterceptor.RegisterDynamicQueryHandlerInput input) - Specified by:
registerDynamicQueryHandlerin interfaceWorkflowOutboundCallsInterceptor
-
registerDynamicUpdateHandler
public void registerDynamicUpdateHandler(WorkflowOutboundCallsInterceptor.RegisterDynamicUpdateHandlerInput input) - Specified by:
registerDynamicUpdateHandlerin interfaceWorkflowOutboundCallsInterceptor
-
randomUUID
- Specified by:
randomUUIDin interfaceWorkflowOutboundCallsInterceptor
-
upsertSearchAttributes
- Specified by:
upsertSearchAttributesin interfaceWorkflowOutboundCallsInterceptor
-
upsertTypedSearchAttributes
- Specified by:
upsertTypedSearchAttributesin interfaceWorkflowOutboundCallsInterceptor
-
upsertMemo
- Specified by:
upsertMemoin interfaceWorkflowOutboundCallsInterceptor
-
getMetricsScope
public com.uber.m3.tally.Scope getMetricsScope()Description copied from interface:WorkflowOutboundCallsInterceptorIntercepts call to get the metric scope in a workflow.- Specified by:
getMetricsScopein interfaceWorkflowOutboundCallsInterceptor
-
newChildThread
Description copied from interface:WorkflowOutboundCallsInterceptorIntercepts creation of a workflow child thread.Please note, that "workflow child thread" and "child workflow" are different and independent concepts.
- Specified by:
newChildThreadin interfaceWorkflowOutboundCallsInterceptor- Parameters:
runnable- thread function to rundetached- if this thread is detached from the parentCancellationScopename- name of the thread- Returns:
- created WorkflowThread
-
currentTimeMillis
public long currentTimeMillis()- Specified by:
currentTimeMillisin interfaceWorkflowOutboundCallsInterceptor
-