Interface MethodConfig.HedgingPolicyOrBuilder

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

public static interface MethodConfig.HedgingPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.Duration
    The first RPC will be sent immediately, but the max_requests-1 subsequent hedged RPCs will be sent at intervals of every hedging_delay.
    com.google.protobuf.DurationOrBuilder
    The first RPC will be sent immediately, but the max_requests-1 subsequent hedged RPCs will be sent at intervals of every hedging_delay.
    int
    The hedging policy will send up to max_requests RPCs.
    com.google.rpc.Code
    The set of status codes which indicate other hedged RPCs may still succeed.
    int
    The set of status codes which indicate other hedged RPCs may still succeed.
    List<com.google.rpc.Code>
    The set of status codes which indicate other hedged RPCs may still succeed.
    int
    The set of status codes which indicate other hedged RPCs may still succeed.
    The set of status codes which indicate other hedged RPCs may still succeed.
    boolean
    The first RPC will be sent immediately, but the max_requests-1 subsequent hedged RPCs will be sent at intervals of every hedging_delay.

    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

    • getMaxAttempts

      int getMaxAttempts()
       The hedging policy will send up to max_requests RPCs.
       This number represents the total number of all attempts, including
       the original attempt.
      
       This field is required and must be greater than 1.
       Any value greater than 5 will be treated as if it were 5.
       
      uint32 max_attempts = 1;
      Returns:
      The maxAttempts.
    • hasHedgingDelay

      boolean hasHedgingDelay()
       The first RPC will be sent immediately, but the max_requests-1 subsequent
       hedged RPCs will be sent at intervals of every hedging_delay. Set this
       to 0 to immediately send all max_requests RPCs.
       
      .google.protobuf.Duration hedging_delay = 2;
      Returns:
      Whether the hedgingDelay field is set.
    • getHedgingDelay

      com.google.protobuf.Duration getHedgingDelay()
       The first RPC will be sent immediately, but the max_requests-1 subsequent
       hedged RPCs will be sent at intervals of every hedging_delay. Set this
       to 0 to immediately send all max_requests RPCs.
       
      .google.protobuf.Duration hedging_delay = 2;
      Returns:
      The hedgingDelay.
    • getHedgingDelayOrBuilder

      com.google.protobuf.DurationOrBuilder getHedgingDelayOrBuilder()
       The first RPC will be sent immediately, but the max_requests-1 subsequent
       hedged RPCs will be sent at intervals of every hedging_delay. Set this
       to 0 to immediately send all max_requests RPCs.
       
      .google.protobuf.Duration hedging_delay = 2;
    • getNonFatalStatusCodesList

      List<com.google.rpc.Code> getNonFatalStatusCodesList()
       The set of status codes which indicate other hedged RPCs may still
       succeed. If a non-fatal status code is returned by the server, hedged
       RPCs will continue. Otherwise, outstanding requests will be canceled and
       the error returned to the client application layer.
      
       This field is optional.
       
      repeated .google.rpc.Code non_fatal_status_codes = 3;
      Returns:
      A list containing the nonFatalStatusCodes.
    • getNonFatalStatusCodesCount

      int getNonFatalStatusCodesCount()
       The set of status codes which indicate other hedged RPCs may still
       succeed. If a non-fatal status code is returned by the server, hedged
       RPCs will continue. Otherwise, outstanding requests will be canceled and
       the error returned to the client application layer.
      
       This field is optional.
       
      repeated .google.rpc.Code non_fatal_status_codes = 3;
      Returns:
      The count of nonFatalStatusCodes.
    • getNonFatalStatusCodes

      com.google.rpc.Code getNonFatalStatusCodes(int index)
       The set of status codes which indicate other hedged RPCs may still
       succeed. If a non-fatal status code is returned by the server, hedged
       RPCs will continue. Otherwise, outstanding requests will be canceled and
       the error returned to the client application layer.
      
       This field is optional.
       
      repeated .google.rpc.Code non_fatal_status_codes = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The nonFatalStatusCodes at the given index.
    • getNonFatalStatusCodesValueList

      List<Integer> getNonFatalStatusCodesValueList()
       The set of status codes which indicate other hedged RPCs may still
       succeed. If a non-fatal status code is returned by the server, hedged
       RPCs will continue. Otherwise, outstanding requests will be canceled and
       the error returned to the client application layer.
      
       This field is optional.
       
      repeated .google.rpc.Code non_fatal_status_codes = 3;
      Returns:
      A list containing the enum numeric values on the wire for nonFatalStatusCodes.
    • getNonFatalStatusCodesValue

      int getNonFatalStatusCodesValue(int index)
       The set of status codes which indicate other hedged RPCs may still
       succeed. If a non-fatal status code is returned by the server, hedged
       RPCs will continue. Otherwise, outstanding requests will be canceled and
       the error returned to the client application layer.
      
       This field is optional.
       
      repeated .google.rpc.Code non_fatal_status_codes = 3;
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of nonFatalStatusCodes at the given index.