Package io.temporal.nexus
Interface NexusOperationContext
-
public interface NexusOperationContextContext object passed to a Nexus operation implementation. UseNexus.getOperationContext()from a Nexus Operation implementation to access.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NexusOperationInfogetInfo()Get Temporal information about the Nexus Operation.com.uber.m3.tally.ScopegetMetricsScope()Get scope for reporting business metrics in a nexus handler.WorkflowClientgetWorkflowClient()Get aWorkflowClientthat can be used to start interact with the Temporal service from a Nexus handler.
-
-
-
Method Detail
-
getInfo
NexusOperationInfo getInfo()
Get Temporal information about the Nexus Operation.
-
getMetricsScope
com.uber.m3.tally.Scope getMetricsScope()
Get scope for reporting business metrics in a nexus handler. This scope is tagged with the service and operation.The original metrics scope is set through
ServiceStubsOptions.Builder.setMetricsScope(Scope)when a worker starts up.
-
getWorkflowClient
WorkflowClient getWorkflowClient()
Get aWorkflowClientthat can be used to start interact with the Temporal service from a Nexus handler.
-
-