public static final class HedgePolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder> implements HedgePolicyOrBuilder
HTTP request hedging :ref:`architecture overview <arch_overview_http_routing_hedging>`.Protobuf type
envoy.api.v2.route.HedgePolicy| Modifier and Type | Method and Description |
|---|---|
HedgePolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HedgePolicy |
build() |
HedgePolicy |
buildPartial() |
HedgePolicy.Builder |
clear() |
HedgePolicy.Builder |
clearAdditionalRequestChance()
Specifies a probability that an additional upstream request should be sent
on top of what is specified by initial_requests.
|
HedgePolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
HedgePolicy.Builder |
clearHedgeOnPerTryTimeout()
Indicates that a hedged request should be sent when the per-try timeout is hit.
|
HedgePolicy.Builder |
clearInitialRequests()
Specifies the number of initial requests that should be sent upstream.
|
HedgePolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
HedgePolicy.Builder |
clone() |
FractionalPercent |
getAdditionalRequestChance()
Specifies a probability that an additional upstream request should be sent
on top of what is specified by initial_requests.
|
FractionalPercent.Builder |
getAdditionalRequestChanceBuilder()
Specifies a probability that an additional upstream request should be sent
on top of what is specified by initial_requests.
|
FractionalPercentOrBuilder |
getAdditionalRequestChanceOrBuilder()
Specifies a probability that an additional upstream request should be sent
on top of what is specified by initial_requests.
|
HedgePolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getHedgeOnPerTryTimeout()
Indicates that a hedged request should be sent when the per-try timeout is hit.
|
com.google.protobuf.UInt32Value |
getInitialRequests()
Specifies the number of initial requests that should be sent upstream.
|
com.google.protobuf.UInt32Value.Builder |
getInitialRequestsBuilder()
Specifies the number of initial requests that should be sent upstream.
|
com.google.protobuf.UInt32ValueOrBuilder |
getInitialRequestsOrBuilder()
Specifies the number of initial requests that should be sent upstream.
|
boolean |
hasAdditionalRequestChance()
Specifies a probability that an additional upstream request should be sent
on top of what is specified by initial_requests.
|
boolean |
hasInitialRequests()
Specifies the number of initial requests that should be sent upstream.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
HedgePolicy.Builder |
mergeAdditionalRequestChance(FractionalPercent value)
Specifies a probability that an additional upstream request should be sent
on top of what is specified by initial_requests.
|
HedgePolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
HedgePolicy.Builder |
mergeFrom(HedgePolicy other) |
HedgePolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
HedgePolicy.Builder |
mergeInitialRequests(com.google.protobuf.UInt32Value value)
Specifies the number of initial requests that should be sent upstream.
|
HedgePolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
HedgePolicy.Builder |
setAdditionalRequestChance(FractionalPercent.Builder builderForValue)
Specifies a probability that an additional upstream request should be sent
on top of what is specified by initial_requests.
|
HedgePolicy.Builder |
setAdditionalRequestChance(FractionalPercent value)
Specifies a probability that an additional upstream request should be sent
on top of what is specified by initial_requests.
|
HedgePolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HedgePolicy.Builder |
setHedgeOnPerTryTimeout(boolean value)
Indicates that a hedged request should be sent when the per-try timeout is hit.
|
HedgePolicy.Builder |
setInitialRequests(com.google.protobuf.UInt32Value.Builder builderForValue)
Specifies the number of initial requests that should be sent upstream.
|
HedgePolicy.Builder |
setInitialRequests(com.google.protobuf.UInt32Value value)
Specifies the number of initial requests that should be sent upstream.
|
HedgePolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
HedgePolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic HedgePolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic HedgePolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic HedgePolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HedgePolicy.Builder>public HedgePolicy.Builder mergeFrom(HedgePolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public HedgePolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HedgePolicy.Builder>IOExceptionpublic boolean hasInitialRequests()
Specifies the number of initial requests that should be sent upstream. Must be at least 1. Defaults to 1. [#not-implemented-hide:]
.google.protobuf.UInt32Value initial_requests = 1 [(.validate.rules) = { ... }hasInitialRequests in interface HedgePolicyOrBuilderpublic com.google.protobuf.UInt32Value getInitialRequests()
Specifies the number of initial requests that should be sent upstream. Must be at least 1. Defaults to 1. [#not-implemented-hide:]
.google.protobuf.UInt32Value initial_requests = 1 [(.validate.rules) = { ... }getInitialRequests in interface HedgePolicyOrBuilderpublic HedgePolicy.Builder setInitialRequests(com.google.protobuf.UInt32Value value)
Specifies the number of initial requests that should be sent upstream. Must be at least 1. Defaults to 1. [#not-implemented-hide:]
.google.protobuf.UInt32Value initial_requests = 1 [(.validate.rules) = { ... }public HedgePolicy.Builder setInitialRequests(com.google.protobuf.UInt32Value.Builder builderForValue)
Specifies the number of initial requests that should be sent upstream. Must be at least 1. Defaults to 1. [#not-implemented-hide:]
.google.protobuf.UInt32Value initial_requests = 1 [(.validate.rules) = { ... }public HedgePolicy.Builder mergeInitialRequests(com.google.protobuf.UInt32Value value)
Specifies the number of initial requests that should be sent upstream. Must be at least 1. Defaults to 1. [#not-implemented-hide:]
.google.protobuf.UInt32Value initial_requests = 1 [(.validate.rules) = { ... }public HedgePolicy.Builder clearInitialRequests()
Specifies the number of initial requests that should be sent upstream. Must be at least 1. Defaults to 1. [#not-implemented-hide:]
.google.protobuf.UInt32Value initial_requests = 1 [(.validate.rules) = { ... }public com.google.protobuf.UInt32Value.Builder getInitialRequestsBuilder()
Specifies the number of initial requests that should be sent upstream. Must be at least 1. Defaults to 1. [#not-implemented-hide:]
.google.protobuf.UInt32Value initial_requests = 1 [(.validate.rules) = { ... }public com.google.protobuf.UInt32ValueOrBuilder getInitialRequestsOrBuilder()
Specifies the number of initial requests that should be sent upstream. Must be at least 1. Defaults to 1. [#not-implemented-hide:]
.google.protobuf.UInt32Value initial_requests = 1 [(.validate.rules) = { ... }getInitialRequestsOrBuilder in interface HedgePolicyOrBuilderpublic boolean hasAdditionalRequestChance()
Specifies a probability that an additional upstream request should be sent on top of what is specified by initial_requests. Defaults to 0. [#not-implemented-hide:]
.envoy.type.FractionalPercent additional_request_chance = 2;hasAdditionalRequestChance in interface HedgePolicyOrBuilderpublic FractionalPercent getAdditionalRequestChance()
Specifies a probability that an additional upstream request should be sent on top of what is specified by initial_requests. Defaults to 0. [#not-implemented-hide:]
.envoy.type.FractionalPercent additional_request_chance = 2;getAdditionalRequestChance in interface HedgePolicyOrBuilderpublic HedgePolicy.Builder setAdditionalRequestChance(FractionalPercent value)
Specifies a probability that an additional upstream request should be sent on top of what is specified by initial_requests. Defaults to 0. [#not-implemented-hide:]
.envoy.type.FractionalPercent additional_request_chance = 2;public HedgePolicy.Builder setAdditionalRequestChance(FractionalPercent.Builder builderForValue)
Specifies a probability that an additional upstream request should be sent on top of what is specified by initial_requests. Defaults to 0. [#not-implemented-hide:]
.envoy.type.FractionalPercent additional_request_chance = 2;public HedgePolicy.Builder mergeAdditionalRequestChance(FractionalPercent value)
Specifies a probability that an additional upstream request should be sent on top of what is specified by initial_requests. Defaults to 0. [#not-implemented-hide:]
.envoy.type.FractionalPercent additional_request_chance = 2;public HedgePolicy.Builder clearAdditionalRequestChance()
Specifies a probability that an additional upstream request should be sent on top of what is specified by initial_requests. Defaults to 0. [#not-implemented-hide:]
.envoy.type.FractionalPercent additional_request_chance = 2;public FractionalPercent.Builder getAdditionalRequestChanceBuilder()
Specifies a probability that an additional upstream request should be sent on top of what is specified by initial_requests. Defaults to 0. [#not-implemented-hide:]
.envoy.type.FractionalPercent additional_request_chance = 2;public FractionalPercentOrBuilder getAdditionalRequestChanceOrBuilder()
Specifies a probability that an additional upstream request should be sent on top of what is specified by initial_requests. Defaults to 0. [#not-implemented-hide:]
.envoy.type.FractionalPercent additional_request_chance = 2;getAdditionalRequestChanceOrBuilder in interface HedgePolicyOrBuilderpublic boolean getHedgeOnPerTryTimeout()
Indicates that a hedged request should be sent when the per-try timeout is hit. This means that a retry will be issued without resetting the original request, leaving multiple upstream requests in flight. The first request to complete successfully will be the one returned to the caller. * At any time, a successful response (i.e. not triggering any of the retry-on conditions) would be returned to the client. * Before per-try timeout, an error response (per retry-on conditions) would be retried immediately or returned ot the client if there are no more retries left. * After per-try timeout, an error response would be discarded, as a retry in the form of a hedged request is already in progress. Note: For this to have effect, you must have a :ref:`RetryPolicy <envoy_api_msg_route.RetryPolicy>` that retries at least one error code and specifies a maximum number of retries. Defaults to false.
bool hedge_on_per_try_timeout = 3;getHedgeOnPerTryTimeout in interface HedgePolicyOrBuilderpublic HedgePolicy.Builder setHedgeOnPerTryTimeout(boolean value)
Indicates that a hedged request should be sent when the per-try timeout is hit. This means that a retry will be issued without resetting the original request, leaving multiple upstream requests in flight. The first request to complete successfully will be the one returned to the caller. * At any time, a successful response (i.e. not triggering any of the retry-on conditions) would be returned to the client. * Before per-try timeout, an error response (per retry-on conditions) would be retried immediately or returned ot the client if there are no more retries left. * After per-try timeout, an error response would be discarded, as a retry in the form of a hedged request is already in progress. Note: For this to have effect, you must have a :ref:`RetryPolicy <envoy_api_msg_route.RetryPolicy>` that retries at least one error code and specifies a maximum number of retries. Defaults to false.
bool hedge_on_per_try_timeout = 3;public HedgePolicy.Builder clearHedgeOnPerTryTimeout()
Indicates that a hedged request should be sent when the per-try timeout is hit. This means that a retry will be issued without resetting the original request, leaving multiple upstream requests in flight. The first request to complete successfully will be the one returned to the caller. * At any time, a successful response (i.e. not triggering any of the retry-on conditions) would be returned to the client. * Before per-try timeout, an error response (per retry-on conditions) would be retried immediately or returned ot the client if there are no more retries left. * After per-try timeout, an error response would be discarded, as a retry in the form of a hedged request is already in progress. Note: For this to have effect, you must have a :ref:`RetryPolicy <envoy_api_msg_route.RetryPolicy>` that retries at least one error code and specifies a maximum number of retries. Defaults to false.
bool hedge_on_per_try_timeout = 3;public final HedgePolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>public final HedgePolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HedgePolicy.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.