Interface NexusOperationContext


  • public interface NexusOperationContext
    Context object passed to a Nexus operation implementation. Use Nexus.getOperationContext() from a Nexus Operation implementation to access.
    • 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 a WorkflowClient that can be used to start interact with the Temporal service from a Nexus handler.