Class RpcRetryOptions.DoNotRetryItem

java.lang.Object
io.temporal.serviceclient.RpcRetryOptions.DoNotRetryItem
Enclosing class:
RpcRetryOptions

public static class RpcRetryOptions.DoNotRetryItem extends Object
  • Constructor Details

    • DoNotRetryItem

      public DoNotRetryItem(@Nonnull io.grpc.Status.Code code, @Nullable Class<? extends com.google.protobuf.Message> detailsClass)
      Parameters:
      code - errors with this code will be considered non retryable. Status.Code.CANCELLED and Status.Code.DEADLINE_EXCEEDED are always considered non-retryable.
      detailsClass - If not null, only failures with the code and details of this detailsClass class are non retryable If null, all failures with the code are non retryable.
  • Method Details

    • getCode

      public io.grpc.Status.Code getCode()
    • getDetailsClass

      public Class<? extends com.google.protobuf.Message> getDetailsClass()