Interface GrpcRoute.RetryPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GrpcRoute.RetryPolicy, GrpcRoute.RetryPolicy.Builder
Enclosing class:
GrpcRoute

public static interface GrpcRoute.RetryPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Specifies the allowed number of retries.
    getRetryConditions(int index)
    - connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts
    com.google.protobuf.ByteString
    - connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts
    int
    - connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts
    - connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getRetryConditionsList

      List<String> getRetryConditionsList()
       - connect-failure: Router will retry on failures connecting to Backend
       Services, for example due to connection timeouts.
       - refused-stream: Router will retry if the backend service resets the
       stream
       with a REFUSED_STREAM error code. This reset type indicates that it is
       safe to retry.
       - cancelled: Router will retry if the gRPC status code in the response
       header
       is set to cancelled
       - deadline-exceeded: Router will retry if the gRPC status code in the
       response
       header is set to deadline-exceeded
       - resource-exhausted: Router will retry if the gRPC status code in the
       response header is set to resource-exhausted
       - unavailable: Router will retry if the gRPC status code in the response
       header is set to unavailable
       
      repeated string retry_conditions = 1;
      Returns:
      A list containing the retryConditions.
    • getRetryConditionsCount

      int getRetryConditionsCount()
       - connect-failure: Router will retry on failures connecting to Backend
       Services, for example due to connection timeouts.
       - refused-stream: Router will retry if the backend service resets the
       stream
       with a REFUSED_STREAM error code. This reset type indicates that it is
       safe to retry.
       - cancelled: Router will retry if the gRPC status code in the response
       header
       is set to cancelled
       - deadline-exceeded: Router will retry if the gRPC status code in the
       response
       header is set to deadline-exceeded
       - resource-exhausted: Router will retry if the gRPC status code in the
       response header is set to resource-exhausted
       - unavailable: Router will retry if the gRPC status code in the response
       header is set to unavailable
       
      repeated string retry_conditions = 1;
      Returns:
      The count of retryConditions.
    • getRetryConditions

      String getRetryConditions(int index)
       - connect-failure: Router will retry on failures connecting to Backend
       Services, for example due to connection timeouts.
       - refused-stream: Router will retry if the backend service resets the
       stream
       with a REFUSED_STREAM error code. This reset type indicates that it is
       safe to retry.
       - cancelled: Router will retry if the gRPC status code in the response
       header
       is set to cancelled
       - deadline-exceeded: Router will retry if the gRPC status code in the
       response
       header is set to deadline-exceeded
       - resource-exhausted: Router will retry if the gRPC status code in the
       response header is set to resource-exhausted
       - unavailable: Router will retry if the gRPC status code in the response
       header is set to unavailable
       
      repeated string retry_conditions = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The retryConditions at the given index.
    • getRetryConditionsBytes

      com.google.protobuf.ByteString getRetryConditionsBytes(int index)
       - connect-failure: Router will retry on failures connecting to Backend
       Services, for example due to connection timeouts.
       - refused-stream: Router will retry if the backend service resets the
       stream
       with a REFUSED_STREAM error code. This reset type indicates that it is
       safe to retry.
       - cancelled: Router will retry if the gRPC status code in the response
       header
       is set to cancelled
       - deadline-exceeded: Router will retry if the gRPC status code in the
       response
       header is set to deadline-exceeded
       - resource-exhausted: Router will retry if the gRPC status code in the
       response header is set to resource-exhausted
       - unavailable: Router will retry if the gRPC status code in the response
       header is set to unavailable
       
      repeated string retry_conditions = 1;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the retryConditions at the given index.
    • getNumRetries

      int getNumRetries()
       Specifies the allowed number of retries. This number must be > 0. If not
       specified, default to 1.
       
      uint32 num_retries = 2;
      Returns:
      The numRetries.