Class NexusClientCallsInterceptor.GetNexusOperationResultInput<R>
java.lang.Object
io.temporal.common.interceptors.NexusClientCallsInterceptor.GetNexusOperationResultInput<R>
- Enclosing interface:
NexusClientCallsInterceptor
public static final class NexusClientCallsInterceptor.GetNexusOperationResultInput<R>
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionGetNexusOperationResultInput(String operationId, String runId, io.grpc.Deadline deadline, Class<R> resultClass, Type resultType) Equivalent toGetNexusOperationResultInput(String, String, Deadline, Class, Type, String, String, String)with no endpoint, service or operation, which is the case for a handle obtained by operation ID rather than by starting an operation.GetNexusOperationResultInput(String operationId, String runId, io.grpc.Deadline deadline, Class<R> resultClass, Type resultType, String endpoint, String service, String operation) The endpoint, service and operation identify the Nexus operation the result is being read for, and are used to build theNexusSerializationContextthe result and failure are decoded with. -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.DeadlineNexus endpoint the operation was started on.Nexus operation that was started, ornull.getRunId()Nexus service the operation was started on, ornull.
-
Constructor Details
-
GetNexusOperationResultInput
public GetNexusOperationResultInput(String operationId, @Nullable String runId, @Nonnull io.grpc.Deadline deadline, Class<R> resultClass, @Nullable Type resultType) Equivalent toGetNexusOperationResultInput(String, String, Deadline, Class, Type, String, String, String)with no endpoint, service or operation, which is the case for a handle obtained by operation ID rather than by starting an operation. -
GetNexusOperationResultInput
public GetNexusOperationResultInput(String operationId, @Nullable String runId, @Nonnull io.grpc.Deadline deadline, Class<R> resultClass, @Nullable Type resultType, @Nullable String endpoint, @Nullable String service, @Nullable String operation) The endpoint, service and operation identify the Nexus operation the result is being read for, and are used to build theNexusSerializationContextthe result and failure are decoded with. They must all be set or all benull: a partially identified operation would silently decode without a context, which for a converter that varies by context means reading the payload the wrong way rather than failing.- Parameters:
endpoint- Nexus endpoint the operation was started on, ornullif the operation was not started through this handleservice- Nexus service the operation was started on, ornulloperation- Nexus operation that was started, ornull- Throws:
IllegalArgumentException- if only some of endpoint, service and operation are set
-
-
Method Details
-
getOperationId
-
getRunId
-
getDeadline
@Nonnull public io.grpc.Deadline getDeadline() -
getResultClass
-
getResultType
-
getEndpoint
Nexus endpoint the operation was started on.nullwhen the operation was not started through this handle, in which casegetService()andgetOperation()arenulltoo and the result is decoded without a Nexus serialization context. -
getService
Nexus service the operation was started on, ornull. Set exactly whengetEndpoint()is set. -
getOperation
Nexus operation that was started, ornull. Set exactly whengetEndpoint()is set.
-