Class InternalNexusOperationContext
java.lang.Object
io.temporal.internal.nexus.InternalNexusOperationContext
-
Constructor Summary
ConstructorsConstructorDescriptionInternalNexusOperationContext(String namespace, String taskQueue, String endpoint, com.uber.m3.tally.Scope metricScope, WorkflowClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponseLink(io.temporal.api.common.v1.Link link) Append a response link returned by an outbound RPC the operation handler issued (e.g.com.uber.m3.tally.ScopeList<io.temporal.api.common.v1.Link> Links from the inbound Nexus task; empty if none.List<io.temporal.api.common.v1.Link> Response links from every outbound RPC the handler issued.io.temporal.api.common.v1.LinkvoidsetOutboundInterceptor(NexusOperationOutboundCallsInterceptor outboundCalls) voidsetRequestLinks(List<io.temporal.api.common.v1.Link> links) Set thecommon.v1.Links extracted from the inbound Nexus task so they can be attached to RPCs issued by the operation handler.voidsetStartWorkflowResponseLink(io.temporal.api.common.v1.Link link)
-
Constructor Details
-
InternalNexusOperationContext
public InternalNexusOperationContext(String namespace, String taskQueue, String endpoint, com.uber.m3.tally.Scope metricScope, WorkflowClient client)
-
-
Method Details
-
getMetricsScope
public com.uber.m3.tally.Scope getMetricsScope() -
getWorkflowClient
-
getTaskQueue
-
getNamespace
-
getEndpoint
-
setOutboundInterceptor
-
getUserFacingContext
-
setRequestLinks
Set thecommon.v1.Links extracted from the inbound Nexus task so they can be attached to RPCs issued by the operation handler. -
getRequestLinks
Links from the inbound Nexus task; empty if none. -
setStartWorkflowResponseLink
public void setStartWorkflowResponseLink(io.temporal.api.common.v1.Link link) -
getStartWorkflowResponseLink
public io.temporal.api.common.v1.Link getStartWorkflowResponseLink() -
addResponseLink
public void addResponseLink(io.temporal.api.common.v1.Link link) Append a response link returned by an outbound RPC the operation handler issued (e.g. signal, signalWithStart, etc). The task handler drains the list when building the operation's StartOperationResponse. -
getResponseLinks
Response links from every outbound RPC the handler issued. Returned as an unmodifiable view; callers must not attempt to mutate. Entries are accumulated while the operation handler runs (the call that flows throughNexusOperationInboundCallsInterceptor.startOperation(io.temporal.common.interceptors.NexusOperationInboundCallsInterceptor.StartOperationInput)) and are drained afterward by the task handler when building the StartOperationResponse.
-