Package io.temporal.internal.nexus
Class NexusOperationContextImpl
- java.lang.Object
-
- io.temporal.internal.nexus.NexusOperationContextImpl
-
- All Implemented Interfaces:
NexusOperationContext
public class NexusOperationContextImpl extends java.lang.Object implements NexusOperationContext
-
-
Constructor Summary
Constructors Constructor Description NexusOperationContextImpl(java.lang.String namespace, java.lang.String taskQueue, WorkflowClient client, com.uber.m3.tally.Scope metricsScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.uber.m3.tally.ScopegetMetricsScope()Get scope for reporting business metrics in a nexus handler.java.lang.StringgetNamespace()java.lang.StringgetTaskQueue()WorkflowClientgetWorkflowClient()
-
-
-
Constructor Detail
-
NexusOperationContextImpl
public NexusOperationContextImpl(java.lang.String namespace, java.lang.String taskQueue, WorkflowClient client, com.uber.m3.tally.Scope metricsScope)
-
-
Method Detail
-
getMetricsScope
public com.uber.m3.tally.Scope getMetricsScope()
Description copied from interface:NexusOperationContextGet 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.- Specified by:
getMetricsScopein interfaceNexusOperationContext
-
getWorkflowClient
public WorkflowClient getWorkflowClient()
-
getTaskQueue
public java.lang.String getTaskQueue()
-
getNamespace
public java.lang.String getNamespace()
-
-