Class RpcRetryOptions.DoNotRetryItem

  • Enclosing class:
    RpcRetryOptions

    public static class RpcRetryOptions.DoNotRetryItem
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DoNotRetryItem​(io.grpc.Status.Code code, java.lang.Class<? extends com.google.protobuf.GeneratedMessageV3> detailsClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.grpc.Status.Code getCode()  
      java.lang.Class<? extends com.google.protobuf.GeneratedMessageV3> getDetailsClass()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DoNotRetryItem

        public DoNotRetryItem​(@Nonnull
                              io.grpc.Status.Code code,
                              @Nullable
                              java.lang.Class<? extends com.google.protobuf.GeneratedMessageV3> 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 Detail

      • getCode

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

        public java.lang.Class<? extends com.google.protobuf.GeneratedMessageV3> getDetailsClass()