public static interface MethodConfig.HedgingPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
int |
getMaxAttempts()
The hedging policy will send up to max_requests RPCs.
|
com.google.rpc.Code |
getNonFatalStatusCodes(int index)
The set of status codes which indicate other hedged RPCs may still
succeed.
|
int |
getNonFatalStatusCodesCount()
The set of status codes which indicate other hedged RPCs may still
succeed.
|
List<com.google.rpc.Code> |
getNonFatalStatusCodesList()
The set of status codes which indicate other hedged RPCs may still
succeed.
|
int |
getNonFatalStatusCodesValue(int index)
The set of status codes which indicate other hedged RPCs may still
succeed.
|
List<Integer> |
getNonFatalStatusCodesValueList()
The set of status codes which indicate other hedged RPCs may still
succeed.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint 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;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;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;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;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;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;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;index - The index of the element to return.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;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;index - The index of the value to return.Copyright © 2022 Google LLC. All rights reserved.