Class BackoffStrategy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BackoffStrategy.Builder>
com.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
io.envoyproxy.envoy.config.core.v3.BackoffStrategy.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,BackoffStrategyOrBuilder
,Cloneable
- Enclosing class:
BackoffStrategy
public static final class BackoffStrategy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
implements BackoffStrategyOrBuilder
Configuration defining a jittered exponential back off strategy.Protobuf type
envoy.config.core.v3.BackoffStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.protobuf.Duration
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> private int
private com.google.protobuf.Duration
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(BackoffStrategy result) clear()
The base interval to be used for the next back off computation.Specifies the maximum interval between retries.com.google.protobuf.Duration
The base interval to be used for the next back off computation.com.google.protobuf.Duration.Builder
The base interval to be used for the next back off computation.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> The base interval to be used for the next back off computation.com.google.protobuf.DurationOrBuilder
The base interval to be used for the next back off computation.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Duration
Specifies the maximum interval between retries.com.google.protobuf.Duration.Builder
Specifies the maximum interval between retries.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> Specifies the maximum interval between retries.com.google.protobuf.DurationOrBuilder
Specifies the maximum interval between retries.boolean
The base interval to be used for the next back off computation.boolean
Specifies the maximum interval between retries.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeBaseInterval
(com.google.protobuf.Duration value) The base interval to be used for the next back off computation.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(BackoffStrategy other) mergeMaxInterval
(com.google.protobuf.Duration value) Specifies the maximum interval between retries.setBaseInterval
(com.google.protobuf.Duration value) The base interval to be used for the next back off computation.setBaseInterval
(com.google.protobuf.Duration.Builder builderForValue) The base interval to be used for the next back off computation.setMaxInterval
(com.google.protobuf.Duration value) Specifies the maximum interval between retries.setMaxInterval
(com.google.protobuf.Duration.Builder builderForValue) Specifies the maximum interval between retries.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
baseInterval_
private com.google.protobuf.Duration baseInterval_ -
baseIntervalBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, baseIntervalBuilder_com.google.protobuf.DurationOrBuilder> -
maxInterval_
private com.google.protobuf.Duration maxInterval_ -
maxIntervalBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, maxIntervalBuilder_com.google.protobuf.DurationOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackoffStrategy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
-
mergeFrom
public BackoffStrategy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackoffStrategy.Builder>
- Throws:
IOException
-
hasBaseInterval
public boolean hasBaseInterval()The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
- Specified by:
hasBaseInterval
in interfaceBackoffStrategyOrBuilder
- Returns:
- Whether the baseInterval field is set.
-
getBaseInterval
public com.google.protobuf.Duration getBaseInterval()The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
- Specified by:
getBaseInterval
in interfaceBackoffStrategyOrBuilder
- Returns:
- The baseInterval.
-
setBaseInterval
The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
-
setBaseInterval
public BackoffStrategy.Builder setBaseInterval(com.google.protobuf.Duration.Builder builderForValue) The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
-
mergeBaseInterval
The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
-
clearBaseInterval
The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
-
getBaseIntervalBuilder
public com.google.protobuf.Duration.Builder getBaseIntervalBuilder()The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
-
getBaseIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getBaseIntervalOrBuilder()The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
- Specified by:
getBaseIntervalOrBuilder
in interfaceBackoffStrategyOrBuilder
-
getBaseIntervalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, getBaseIntervalFieldBuilder()com.google.protobuf.DurationOrBuilder> The base interval to be used for the next back off computation. It should be greater than zero and less than or equal to :ref:`max_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }
-
hasMaxInterval
public boolean hasMaxInterval()Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
- Specified by:
hasMaxInterval
in interfaceBackoffStrategyOrBuilder
- Returns:
- Whether the maxInterval field is set.
-
getMaxInterval
public com.google.protobuf.Duration getMaxInterval()Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
- Specified by:
getMaxInterval
in interfaceBackoffStrategyOrBuilder
- Returns:
- The maxInterval.
-
setMaxInterval
Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
-
setMaxInterval
Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
-
mergeMaxInterval
Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
-
clearMaxInterval
Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
-
getMaxIntervalBuilder
public com.google.protobuf.Duration.Builder getMaxIntervalBuilder()Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
-
getMaxIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxIntervalOrBuilder()Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
- Specified by:
getMaxIntervalOrBuilder
in interfaceBackoffStrategyOrBuilder
-
getMaxIntervalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, getMaxIntervalFieldBuilder()com.google.protobuf.DurationOrBuilder> Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default is 10 times the :ref:`base_interval <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
-