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 Details

    • GetNexusOperationResultInput

      public GetNexusOperationResultInput(String operationId, @Nullable String runId, @Nonnull io.grpc.Deadline deadline, Class<R> resultClass, @Nullable Type resultType)
      Equivalent to GetNexusOperationResultInput(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 the NexusSerializationContext the result and failure are decoded with. They must all be set or all be null: 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, or null if the operation was not started through this handle
      service - Nexus service the operation was started on, or null
      operation - Nexus operation that was started, or null
      Throws:
      IllegalArgumentException - if only some of endpoint, service and operation are set
  • Method Details

    • getOperationId

      public String getOperationId()
    • getRunId

      public Optional<String> getRunId()
    • getDeadline

      @Nonnull public io.grpc.Deadline getDeadline()
    • getResultClass

      public Class<R> getResultClass()
    • getResultType

      @Nullable public Type getResultType()
    • getEndpoint

      @Nullable public String getEndpoint()
      Nexus endpoint the operation was started on. null when the operation was not started through this handle, in which case getService() and getOperation() are null too and the result is decoded without a Nexus serialization context.
    • getService

      @Nullable public String getService()
      Nexus service the operation was started on, or null. Set exactly when getEndpoint() is set.
    • getOperation

      @Nullable public String getOperation()
      Nexus operation that was started, or null. Set exactly when getEndpoint() is set.