Interface NexusOperationContext
public interface NexusOperationContext
Context object passed to a Nexus operation implementation. Use
Nexus.getOperationContext() from a Nexus Operation implementation to access.-
Method Summary
Modifier and TypeMethodDescriptiongetInfo()Get Temporal information about the Nexus Operation.com.uber.m3.tally.ScopeGet scope for reporting business metrics in a nexus handler.Get aWorkflowClientthat can be used to start interact with the Temporal service from a Nexus handler.
-
Method Details
-
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.
-