Class DnsCacheConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
io.envoyproxy.envoy.config.common.dynamic_forward_proxy.v2alpha.DnsCacheConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DnsCacheConfigOrBuilder,Cloneable
- Enclosing class:
- DnsCacheConfig
public static final class DnsCacheConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
implements DnsCacheConfigOrBuilder
Configuration for the dynamic forward proxy DNS cache. See the :ref:`architecture overview <arch_overview_http_dynamic_forward_proxy>` for more information. [#next-free-field: 7]Protobuf type
envoy.config.common.dynamic_forward_proxy.v2alpha.DnsCacheConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing.The DNS lookup family to use during resolution.The DNS refresh rate for currently cached DNS hosts.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The TTL for hosts that are unused.The maximum number of hosts that the cache will hold.The name of the cache.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing.If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing.If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing.The DNS lookup family to use during resolution.intThe DNS lookup family to use during resolution.com.google.protobuf.DurationThe DNS refresh rate for currently cached DNS hosts.com.google.protobuf.Duration.BuilderThe DNS refresh rate for currently cached DNS hosts.com.google.protobuf.DurationOrBuilderThe DNS refresh rate for currently cached DNS hosts.com.google.protobuf.DurationThe TTL for hosts that are unused.com.google.protobuf.Duration.BuilderThe TTL for hosts that are unused.com.google.protobuf.DurationOrBuilderThe TTL for hosts that are unused.com.google.protobuf.UInt32ValueThe maximum number of hosts that the cache will hold.com.google.protobuf.UInt32Value.BuilderThe maximum number of hosts that the cache will hold.com.google.protobuf.UInt32ValueOrBuilderThe maximum number of hosts that the cache will hold.getName()The name of the cache.com.google.protobuf.ByteStringThe name of the cache.booleanIf the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing.booleanThe DNS refresh rate for currently cached DNS hosts.booleanThe TTL for hosts that are unused.booleanThe maximum number of hosts that the cache will hold.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanIf the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing.mergeDnsRefreshRate(com.google.protobuf.Duration value) The DNS refresh rate for currently cached DNS hosts.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DnsCacheConfig other) mergeHostTtl(com.google.protobuf.Duration value) The TTL for hosts that are unused.mergeMaxHosts(com.google.protobuf.UInt32Value value) The maximum number of hosts that the cache will hold.final DnsCacheConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing.setDnsFailureRefreshRate(Cluster.RefreshRate.Builder builderForValue) If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing.The DNS lookup family to use during resolution.setDnsLookupFamilyValue(int value) The DNS lookup family to use during resolution.setDnsRefreshRate(com.google.protobuf.Duration value) The DNS refresh rate for currently cached DNS hosts.setDnsRefreshRate(com.google.protobuf.Duration.Builder builderForValue) The DNS refresh rate for currently cached DNS hosts.setHostTtl(com.google.protobuf.Duration value) The TTL for hosts that are unused.setHostTtl(com.google.protobuf.Duration.Builder builderForValue) The TTL for hosts that are unused.setMaxHosts(com.google.protobuf.UInt32Value value) The maximum number of hosts that the cache will hold.setMaxHosts(com.google.protobuf.UInt32Value.Builder builderForValue) The maximum number of hosts that the cache will hold.The name of the cache.setNameBytes(com.google.protobuf.ByteString value) The name of the cache.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final DnsCacheConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.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.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
setField
public DnsCacheConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
setRepeatedField
public DnsCacheConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
addRepeatedField
public DnsCacheConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DnsCacheConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
mergeFrom
public DnsCacheConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DnsCacheConfig.Builder>- Throws:
IOException
-
getName
The name of the cache. Multiple named caches allow independent dynamic forward proxy configurations to operate within a single Envoy process using different configurations. All configurations with the same name *must* otherwise have the same settings when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceDnsCacheConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the cache. Multiple named caches allow independent dynamic forward proxy configurations to operate within a single Envoy process using different configurations. All configurations with the same name *must* otherwise have the same settings when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceDnsCacheConfigOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the cache. Multiple named caches allow independent dynamic forward proxy configurations to operate within a single Envoy process using different configurations. All configurations with the same name *must* otherwise have the same settings when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the cache. Multiple named caches allow independent dynamic forward proxy configurations to operate within a single Envoy process using different configurations. All configurations with the same name *must* otherwise have the same settings when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
The name of the cache. Multiple named caches allow independent dynamic forward proxy configurations to operate within a single Envoy process using different configurations. All configurations with the same name *must* otherwise have the same settings when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDnsLookupFamilyValue
public int getDnsLookupFamilyValue()The DNS lookup family to use during resolution. [#comment:TODO(mattklein123): Figure out how to support IPv4/IPv6 "happy eyeballs" mode. The way this might work is a new lookup family which returns both IPv4 and IPv6 addresses, and then configures a host to have a primary and fall back address. With this, we could very likely build a "happy eyeballs" connection pool which would race the primary / fall back address and return the one that wins. This same method could potentially also be used for QUIC to TCP fall back.]
.envoy.api.v2.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }- Specified by:
getDnsLookupFamilyValuein interfaceDnsCacheConfigOrBuilder- Returns:
- The enum numeric value on the wire for dnsLookupFamily.
-
setDnsLookupFamilyValue
The DNS lookup family to use during resolution. [#comment:TODO(mattklein123): Figure out how to support IPv4/IPv6 "happy eyeballs" mode. The way this might work is a new lookup family which returns both IPv4 and IPv6 addresses, and then configures a host to have a primary and fall back address. With this, we could very likely build a "happy eyeballs" connection pool which would race the primary / fall back address and return the one that wins. This same method could potentially also be used for QUIC to TCP fall back.]
.envoy.api.v2.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for dnsLookupFamily to set.- Returns:
- This builder for chaining.
-
getDnsLookupFamily
The DNS lookup family to use during resolution. [#comment:TODO(mattklein123): Figure out how to support IPv4/IPv6 "happy eyeballs" mode. The way this might work is a new lookup family which returns both IPv4 and IPv6 addresses, and then configures a host to have a primary and fall back address. With this, we could very likely build a "happy eyeballs" connection pool which would race the primary / fall back address and return the one that wins. This same method could potentially also be used for QUIC to TCP fall back.]
.envoy.api.v2.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }- Specified by:
getDnsLookupFamilyin interfaceDnsCacheConfigOrBuilder- Returns:
- The dnsLookupFamily.
-
setDnsLookupFamily
The DNS lookup family to use during resolution. [#comment:TODO(mattklein123): Figure out how to support IPv4/IPv6 "happy eyeballs" mode. The way this might work is a new lookup family which returns both IPv4 and IPv6 addresses, and then configures a host to have a primary and fall back address. With this, we could very likely build a "happy eyeballs" connection pool which would race the primary / fall back address and return the one that wins. This same method could potentially also be used for QUIC to TCP fall back.]
.envoy.api.v2.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }- Parameters:
value- The dnsLookupFamily to set.- Returns:
- This builder for chaining.
-
clearDnsLookupFamily
The DNS lookup family to use during resolution. [#comment:TODO(mattklein123): Figure out how to support IPv4/IPv6 "happy eyeballs" mode. The way this might work is a new lookup family which returns both IPv4 and IPv6 addresses, and then configures a host to have a primary and fall back address. With this, we could very likely build a "happy eyeballs" connection pool which would race the primary / fall back address and return the one that wins. This same method could potentially also be used for QUIC to TCP fall back.]
.envoy.api.v2.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasDnsRefreshRate
public boolean hasDnsRefreshRate()The DNS refresh rate for currently cached DNS hosts. If not specified defaults to 60s. .. note: The returned DNS TTL is not currently used to alter the refresh rate. This feature will be added in a future change. .. note: The refresh rate is rounded to the closest millisecond, and must be at least 1ms.
.google.protobuf.Duration dns_refresh_rate = 3 [(.validate.rules) = { ... }- Specified by:
hasDnsRefreshRatein interfaceDnsCacheConfigOrBuilder- Returns:
- Whether the dnsRefreshRate field is set.
-
getDnsRefreshRate
public com.google.protobuf.Duration getDnsRefreshRate()The DNS refresh rate for currently cached DNS hosts. If not specified defaults to 60s. .. note: The returned DNS TTL is not currently used to alter the refresh rate. This feature will be added in a future change. .. note: The refresh rate is rounded to the closest millisecond, and must be at least 1ms.
.google.protobuf.Duration dns_refresh_rate = 3 [(.validate.rules) = { ... }- Specified by:
getDnsRefreshRatein interfaceDnsCacheConfigOrBuilder- Returns:
- The dnsRefreshRate.
-
setDnsRefreshRate
The DNS refresh rate for currently cached DNS hosts. If not specified defaults to 60s. .. note: The returned DNS TTL is not currently used to alter the refresh rate. This feature will be added in a future change. .. note: The refresh rate is rounded to the closest millisecond, and must be at least 1ms.
.google.protobuf.Duration dns_refresh_rate = 3 [(.validate.rules) = { ... } -
setDnsRefreshRate
public DnsCacheConfig.Builder setDnsRefreshRate(com.google.protobuf.Duration.Builder builderForValue) The DNS refresh rate for currently cached DNS hosts. If not specified defaults to 60s. .. note: The returned DNS TTL is not currently used to alter the refresh rate. This feature will be added in a future change. .. note: The refresh rate is rounded to the closest millisecond, and must be at least 1ms.
.google.protobuf.Duration dns_refresh_rate = 3 [(.validate.rules) = { ... } -
mergeDnsRefreshRate
The DNS refresh rate for currently cached DNS hosts. If not specified defaults to 60s. .. note: The returned DNS TTL is not currently used to alter the refresh rate. This feature will be added in a future change. .. note: The refresh rate is rounded to the closest millisecond, and must be at least 1ms.
.google.protobuf.Duration dns_refresh_rate = 3 [(.validate.rules) = { ... } -
clearDnsRefreshRate
The DNS refresh rate for currently cached DNS hosts. If not specified defaults to 60s. .. note: The returned DNS TTL is not currently used to alter the refresh rate. This feature will be added in a future change. .. note: The refresh rate is rounded to the closest millisecond, and must be at least 1ms.
.google.protobuf.Duration dns_refresh_rate = 3 [(.validate.rules) = { ... } -
getDnsRefreshRateBuilder
public com.google.protobuf.Duration.Builder getDnsRefreshRateBuilder()The DNS refresh rate for currently cached DNS hosts. If not specified defaults to 60s. .. note: The returned DNS TTL is not currently used to alter the refresh rate. This feature will be added in a future change. .. note: The refresh rate is rounded to the closest millisecond, and must be at least 1ms.
.google.protobuf.Duration dns_refresh_rate = 3 [(.validate.rules) = { ... } -
getDnsRefreshRateOrBuilder
public com.google.protobuf.DurationOrBuilder getDnsRefreshRateOrBuilder()The DNS refresh rate for currently cached DNS hosts. If not specified defaults to 60s. .. note: The returned DNS TTL is not currently used to alter the refresh rate. This feature will be added in a future change. .. note: The refresh rate is rounded to the closest millisecond, and must be at least 1ms.
.google.protobuf.Duration dns_refresh_rate = 3 [(.validate.rules) = { ... }- Specified by:
getDnsRefreshRateOrBuilderin interfaceDnsCacheConfigOrBuilder
-
hasHostTtl
public boolean hasHostTtl()The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged. If not specified defaults to 5m. .. note: The TTL is only checked at the time of DNS refresh, as specified by *dns_refresh_rate*. This means that if the configured TTL is shorter than the refresh rate the host may not be removed immediately. .. note: The TTL has no relation to DNS TTL and is only used to control Envoy's resource usage.
.google.protobuf.Duration host_ttl = 4 [(.validate.rules) = { ... }- Specified by:
hasHostTtlin interfaceDnsCacheConfigOrBuilder- Returns:
- Whether the hostTtl field is set.
-
getHostTtl
public com.google.protobuf.Duration getHostTtl()The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged. If not specified defaults to 5m. .. note: The TTL is only checked at the time of DNS refresh, as specified by *dns_refresh_rate*. This means that if the configured TTL is shorter than the refresh rate the host may not be removed immediately. .. note: The TTL has no relation to DNS TTL and is only used to control Envoy's resource usage.
.google.protobuf.Duration host_ttl = 4 [(.validate.rules) = { ... }- Specified by:
getHostTtlin interfaceDnsCacheConfigOrBuilder- Returns:
- The hostTtl.
-
setHostTtl
The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged. If not specified defaults to 5m. .. note: The TTL is only checked at the time of DNS refresh, as specified by *dns_refresh_rate*. This means that if the configured TTL is shorter than the refresh rate the host may not be removed immediately. .. note: The TTL has no relation to DNS TTL and is only used to control Envoy's resource usage.
.google.protobuf.Duration host_ttl = 4 [(.validate.rules) = { ... } -
setHostTtl
The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged. If not specified defaults to 5m. .. note: The TTL is only checked at the time of DNS refresh, as specified by *dns_refresh_rate*. This means that if the configured TTL is shorter than the refresh rate the host may not be removed immediately. .. note: The TTL has no relation to DNS TTL and is only used to control Envoy's resource usage.
.google.protobuf.Duration host_ttl = 4 [(.validate.rules) = { ... } -
mergeHostTtl
The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged. If not specified defaults to 5m. .. note: The TTL is only checked at the time of DNS refresh, as specified by *dns_refresh_rate*. This means that if the configured TTL is shorter than the refresh rate the host may not be removed immediately. .. note: The TTL has no relation to DNS TTL and is only used to control Envoy's resource usage.
.google.protobuf.Duration host_ttl = 4 [(.validate.rules) = { ... } -
clearHostTtl
The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged. If not specified defaults to 5m. .. note: The TTL is only checked at the time of DNS refresh, as specified by *dns_refresh_rate*. This means that if the configured TTL is shorter than the refresh rate the host may not be removed immediately. .. note: The TTL has no relation to DNS TTL and is only used to control Envoy's resource usage.
.google.protobuf.Duration host_ttl = 4 [(.validate.rules) = { ... } -
getHostTtlBuilder
public com.google.protobuf.Duration.Builder getHostTtlBuilder()The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged. If not specified defaults to 5m. .. note: The TTL is only checked at the time of DNS refresh, as specified by *dns_refresh_rate*. This means that if the configured TTL is shorter than the refresh rate the host may not be removed immediately. .. note: The TTL has no relation to DNS TTL and is only used to control Envoy's resource usage.
.google.protobuf.Duration host_ttl = 4 [(.validate.rules) = { ... } -
getHostTtlOrBuilder
public com.google.protobuf.DurationOrBuilder getHostTtlOrBuilder()The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged. If not specified defaults to 5m. .. note: The TTL is only checked at the time of DNS refresh, as specified by *dns_refresh_rate*. This means that if the configured TTL is shorter than the refresh rate the host may not be removed immediately. .. note: The TTL has no relation to DNS TTL and is only used to control Envoy's resource usage.
.google.protobuf.Duration host_ttl = 4 [(.validate.rules) = { ... }- Specified by:
getHostTtlOrBuilderin interfaceDnsCacheConfigOrBuilder
-
hasMaxHosts
public boolean hasMaxHosts()The maximum number of hosts that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum hosts in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_hosts = 5 [(.validate.rules) = { ... }- Specified by:
hasMaxHostsin interfaceDnsCacheConfigOrBuilder- Returns:
- Whether the maxHosts field is set.
-
getMaxHosts
public com.google.protobuf.UInt32Value getMaxHosts()The maximum number of hosts that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum hosts in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_hosts = 5 [(.validate.rules) = { ... }- Specified by:
getMaxHostsin interfaceDnsCacheConfigOrBuilder- Returns:
- The maxHosts.
-
setMaxHosts
The maximum number of hosts that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum hosts in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_hosts = 5 [(.validate.rules) = { ... } -
setMaxHosts
The maximum number of hosts that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum hosts in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_hosts = 5 [(.validate.rules) = { ... } -
mergeMaxHosts
The maximum number of hosts that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum hosts in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_hosts = 5 [(.validate.rules) = { ... } -
clearMaxHosts
The maximum number of hosts that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum hosts in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_hosts = 5 [(.validate.rules) = { ... } -
getMaxHostsBuilder
public com.google.protobuf.UInt32Value.Builder getMaxHostsBuilder()The maximum number of hosts that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum hosts in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_hosts = 5 [(.validate.rules) = { ... } -
getMaxHostsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxHostsOrBuilder()The maximum number of hosts that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum hosts in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_hosts = 5 [(.validate.rules) = { ... }- Specified by:
getMaxHostsOrBuilderin interfaceDnsCacheConfigOrBuilder
-
hasDnsFailureRefreshRate
public boolean hasDnsFailureRefreshRate()If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.api.v2.Cluster.RefreshRate dns_failure_refresh_rate = 6;- Specified by:
hasDnsFailureRefreshRatein interfaceDnsCacheConfigOrBuilder- Returns:
- Whether the dnsFailureRefreshRate field is set.
-
getDnsFailureRefreshRate
If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.api.v2.Cluster.RefreshRate dns_failure_refresh_rate = 6;- Specified by:
getDnsFailureRefreshRatein interfaceDnsCacheConfigOrBuilder- Returns:
- The dnsFailureRefreshRate.
-
setDnsFailureRefreshRate
If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.api.v2.Cluster.RefreshRate dns_failure_refresh_rate = 6; -
setDnsFailureRefreshRate
If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.api.v2.Cluster.RefreshRate dns_failure_refresh_rate = 6; -
mergeDnsFailureRefreshRate
If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.api.v2.Cluster.RefreshRate dns_failure_refresh_rate = 6; -
clearDnsFailureRefreshRate
If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.api.v2.Cluster.RefreshRate dns_failure_refresh_rate = 6; -
getDnsFailureRefreshRateBuilder
If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.api.v2.Cluster.RefreshRate dns_failure_refresh_rate = 6; -
getDnsFailureRefreshRateOrBuilder
If the DNS failure refresh rate is specified, this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.api.v2.Cluster.RefreshRate dns_failure_refresh_rate = 6;- Specified by:
getDnsFailureRefreshRateOrBuilderin interfaceDnsCacheConfigOrBuilder
-
setUnknownFields
public final DnsCacheConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-
mergeUnknownFields
public final DnsCacheConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>
-