Class BackoffStrategy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typeenvoy.config.core.v3.BackoffStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.DurationbaseInterval_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>baseIntervalBuilder_private intbitField0_private com.google.protobuf.DurationmaxInterval_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>maxIntervalBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BackoffStrategybuild()BackoffStrategybuildPartial()private voidbuildPartial0(BackoffStrategy result)BackoffStrategy.Builderclear()BackoffStrategy.BuilderclearBaseInterval()The base interval to be used for the next back off computation.BackoffStrategy.BuilderclearMaxInterval()Specifies the maximum interval between retries.com.google.protobuf.DurationgetBaseInterval()The base interval to be used for the next back off computation.com.google.protobuf.Duration.BuildergetBaseIntervalBuilder()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>getBaseIntervalFieldBuilder()The base interval to be used for the next back off computation.com.google.protobuf.DurationOrBuildergetBaseIntervalOrBuilder()The base interval to be used for the next back off computation.BackoffStrategygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetMaxInterval()Specifies the maximum interval between retries.com.google.protobuf.Duration.BuildergetMaxIntervalBuilder()Specifies the maximum interval between retries.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>getMaxIntervalFieldBuilder()Specifies the maximum interval between retries.com.google.protobuf.DurationOrBuildergetMaxIntervalOrBuilder()Specifies the maximum interval between retries.booleanhasBaseInterval()The base interval to be used for the next back off computation.booleanhasMaxInterval()Specifies the maximum interval between retries.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()BackoffStrategy.BuildermergeBaseInterval(com.google.protobuf.Duration value)The base interval to be used for the next back off computation.BackoffStrategy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BackoffStrategy.BuildermergeFrom(com.google.protobuf.Message other)BackoffStrategy.BuildermergeFrom(BackoffStrategy other)BackoffStrategy.BuildermergeMaxInterval(com.google.protobuf.Duration value)Specifies the maximum interval between retries.BackoffStrategy.BuildersetBaseInterval(com.google.protobuf.Duration value)The base interval to be used for the next back off computation.BackoffStrategy.BuildersetBaseInterval(com.google.protobuf.Duration.Builder builderForValue)The base interval to be used for the next back off computation.BackoffStrategy.BuildersetMaxInterval(com.google.protobuf.Duration value)Specifies the maximum interval between retries.BackoffStrategy.BuildersetMaxInterval(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
-
-
-
-
Field Detail
-
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,com.google.protobuf.DurationOrBuilder> baseIntervalBuilder_
-
maxInterval_
private com.google.protobuf.Duration maxInterval_
-
maxIntervalBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> maxIntervalBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public BackoffStrategy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
-
getDefaultInstanceForType
public BackoffStrategy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BackoffStrategy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BackoffStrategy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(BackoffStrategy result)
-
mergeFrom
public BackoffStrategy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackoffStrategy.Builder>
-
mergeFrom
public BackoffStrategy.Builder mergeFrom(BackoffStrategy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BackoffStrategy.Builder>
-
mergeFrom
public BackoffStrategy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackoffStrategy.Builder>- Throws:
java.io.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:
hasBaseIntervalin 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:
getBaseIntervalin interfaceBackoffStrategyOrBuilder- Returns:
- The baseInterval.
-
setBaseInterval
public BackoffStrategy.Builder setBaseInterval(com.google.protobuf.Duration value)
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
public BackoffStrategy.Builder mergeBaseInterval(com.google.protobuf.Duration value)
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
public BackoffStrategy.Builder 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:
getBaseIntervalOrBuilderin interfaceBackoffStrategyOrBuilder
-
getBaseIntervalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> getBaseIntervalFieldBuilder()
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:
hasMaxIntervalin 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:
getMaxIntervalin interfaceBackoffStrategyOrBuilder- Returns:
- The maxInterval.
-
setMaxInterval
public BackoffStrategy.Builder setMaxInterval(com.google.protobuf.Duration value)
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
public BackoffStrategy.Builder setMaxInterval(com.google.protobuf.Duration.Builder builderForValue)
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
public BackoffStrategy.Builder mergeMaxInterval(com.google.protobuf.Duration value)
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
public BackoffStrategy.Builder 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:
getMaxIntervalOrBuilderin interfaceBackoffStrategyOrBuilder
-
getMaxIntervalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> getMaxIntervalFieldBuilder()
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) = { ... }
-
-