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: 9]Protobuf type
envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig| Modifier and Type | Method and Description |
|---|---|
DnsCacheConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DnsCacheConfig |
build() |
DnsCacheConfig |
buildPartial() |
DnsCacheConfig.Builder |
clear() |
DnsCacheConfig.Builder |
clearDnsCacheCircuitBreaker()
The config of circuit breakers for resolver.
|
DnsCacheConfig.Builder |
clearDnsFailureRefreshRate()
If the DNS failure refresh rate is specified,
this is used as the cache's DNS refresh rate when DNS requests are failing.
|
DnsCacheConfig.Builder |
clearDnsLookupFamily()
The DNS lookup family to use during resolution.
|
DnsCacheConfig.Builder |
clearDnsRefreshRate()
The DNS refresh rate for currently cached DNS hosts.
|
DnsCacheConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DnsCacheConfig.Builder |
clearHostTtl()
The TTL for hosts that are unused.
|
DnsCacheConfig.Builder |
clearMaxHosts()
The maximum number of hosts that the cache will hold.
|
DnsCacheConfig.Builder |
clearName()
The name of the cache.
|
DnsCacheConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DnsCacheConfig.Builder |
clearUseTcpForDnsLookups()
[#next-major-version: Reconcile DNS options in a single message.]
|
DnsCacheConfig.Builder |
clone() |
DnsCacheConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DnsCacheCircuitBreakers |
getDnsCacheCircuitBreaker()
The config of circuit breakers for resolver.
|
DnsCacheCircuitBreakers.Builder |
getDnsCacheCircuitBreakerBuilder()
The config of circuit breakers for resolver.
|
DnsCacheCircuitBreakersOrBuilder |
getDnsCacheCircuitBreakerOrBuilder()
The config of circuit breakers for resolver.
|
Cluster.RefreshRate |
getDnsFailureRefreshRate()
If the DNS failure refresh rate is specified,
this is used as the cache's DNS refresh rate when DNS requests are failing.
|
Cluster.RefreshRate.Builder |
getDnsFailureRefreshRateBuilder()
If the DNS failure refresh rate is specified,
this is used as the cache's DNS refresh rate when DNS requests are failing.
|
Cluster.RefreshRateOrBuilder |
getDnsFailureRefreshRateOrBuilder()
If the DNS failure refresh rate is specified,
this is used as the cache's DNS refresh rate when DNS requests are failing.
|
Cluster.DnsLookupFamily |
getDnsLookupFamily()
The DNS lookup family to use during resolution.
|
int |
getDnsLookupFamilyValue()
The DNS lookup family to use during resolution.
|
com.google.protobuf.Duration |
getDnsRefreshRate()
The DNS refresh rate for currently cached DNS hosts.
|
com.google.protobuf.Duration.Builder |
getDnsRefreshRateBuilder()
The DNS refresh rate for currently cached DNS hosts.
|
com.google.protobuf.DurationOrBuilder |
getDnsRefreshRateOrBuilder()
The DNS refresh rate for currently cached DNS hosts.
|
com.google.protobuf.Duration |
getHostTtl()
The TTL for hosts that are unused.
|
com.google.protobuf.Duration.Builder |
getHostTtlBuilder()
The TTL for hosts that are unused.
|
com.google.protobuf.DurationOrBuilder |
getHostTtlOrBuilder()
The TTL for hosts that are unused.
|
com.google.protobuf.UInt32Value |
getMaxHosts()
The maximum number of hosts that the cache will hold.
|
com.google.protobuf.UInt32Value.Builder |
getMaxHostsBuilder()
The maximum number of hosts that the cache will hold.
|
com.google.protobuf.UInt32ValueOrBuilder |
getMaxHostsOrBuilder()
The maximum number of hosts that the cache will hold.
|
String |
getName()
The name of the cache.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the cache.
|
boolean |
getUseTcpForDnsLookups()
[#next-major-version: Reconcile DNS options in a single message.]
|
boolean |
hasDnsCacheCircuitBreaker()
The config of circuit breakers for resolver.
|
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.
|
boolean |
hasDnsRefreshRate()
The DNS refresh rate for currently cached DNS hosts.
|
boolean |
hasHostTtl()
The TTL for hosts that are unused.
|
boolean |
hasMaxHosts()
The maximum number of hosts that the cache will hold.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DnsCacheConfig.Builder |
mergeDnsCacheCircuitBreaker(DnsCacheCircuitBreakers value)
The config of circuit breakers for resolver.
|
DnsCacheConfig.Builder |
mergeDnsFailureRefreshRate(Cluster.RefreshRate value)
If the DNS failure refresh rate is specified,
this is used as the cache's DNS refresh rate when DNS requests are failing.
|
DnsCacheConfig.Builder |
mergeDnsRefreshRate(com.google.protobuf.Duration value)
The DNS refresh rate for currently cached DNS hosts.
|
DnsCacheConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DnsCacheConfig.Builder |
mergeFrom(DnsCacheConfig other) |
DnsCacheConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
DnsCacheConfig.Builder |
mergeHostTtl(com.google.protobuf.Duration value)
The TTL for hosts that are unused.
|
DnsCacheConfig.Builder |
mergeMaxHosts(com.google.protobuf.UInt32Value value)
The maximum number of hosts that the cache will hold.
|
DnsCacheConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DnsCacheConfig.Builder |
setDnsCacheCircuitBreaker(DnsCacheCircuitBreakers.Builder builderForValue)
The config of circuit breakers for resolver.
|
DnsCacheConfig.Builder |
setDnsCacheCircuitBreaker(DnsCacheCircuitBreakers value)
The config of circuit breakers for resolver.
|
DnsCacheConfig.Builder |
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.
|
DnsCacheConfig.Builder |
setDnsFailureRefreshRate(Cluster.RefreshRate value)
If the DNS failure refresh rate is specified,
this is used as the cache's DNS refresh rate when DNS requests are failing.
|
DnsCacheConfig.Builder |
setDnsLookupFamily(Cluster.DnsLookupFamily value)
The DNS lookup family to use during resolution.
|
DnsCacheConfig.Builder |
setDnsLookupFamilyValue(int value)
The DNS lookup family to use during resolution.
|
DnsCacheConfig.Builder |
setDnsRefreshRate(com.google.protobuf.Duration.Builder builderForValue)
The DNS refresh rate for currently cached DNS hosts.
|
DnsCacheConfig.Builder |
setDnsRefreshRate(com.google.protobuf.Duration value)
The DNS refresh rate for currently cached DNS hosts.
|
DnsCacheConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DnsCacheConfig.Builder |
setHostTtl(com.google.protobuf.Duration.Builder builderForValue)
The TTL for hosts that are unused.
|
DnsCacheConfig.Builder |
setHostTtl(com.google.protobuf.Duration value)
The TTL for hosts that are unused.
|
DnsCacheConfig.Builder |
setMaxHosts(com.google.protobuf.UInt32Value.Builder builderForValue)
The maximum number of hosts that the cache will hold.
|
DnsCacheConfig.Builder |
setMaxHosts(com.google.protobuf.UInt32Value value)
The maximum number of hosts that the cache will hold.
|
DnsCacheConfig.Builder |
setName(String value)
The name of the cache.
|
DnsCacheConfig.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the cache.
|
DnsCacheConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DnsCacheConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DnsCacheConfig.Builder |
setUseTcpForDnsLookups(boolean value)
[#next-major-version: Reconcile DNS options in a single message.]
|
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<DnsCacheConfig.Builder>public DnsCacheConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.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<DnsCacheConfig.Builder>public DnsCacheConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DnsCacheConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DnsCacheConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DnsCacheConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>public DnsCacheConfig.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<DnsCacheConfig.Builder>public DnsCacheConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>public DnsCacheConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>public DnsCacheConfig.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<DnsCacheConfig.Builder>public DnsCacheConfig.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<DnsCacheConfig.Builder>public DnsCacheConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DnsCacheConfig.Builder>public DnsCacheConfig.Builder mergeFrom(DnsCacheConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>public DnsCacheConfig.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<DnsCacheConfig.Builder>IOExceptionpublic String 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) = { ... }getName in interface DnsCacheConfigOrBuilderpublic 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) = { ... }getNameBytes in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setName(String value)
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) = { ... }public DnsCacheConfig.Builder 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) = { ... }public DnsCacheConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
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) = { ... }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.config.cluster.v3.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }getDnsLookupFamilyValue in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setDnsLookupFamilyValue(int value)
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.config.cluster.v3.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }public Cluster.DnsLookupFamily 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.config.cluster.v3.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }getDnsLookupFamily in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setDnsLookupFamily(Cluster.DnsLookupFamily value)
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.config.cluster.v3.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }public DnsCacheConfig.Builder 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.config.cluster.v3.Cluster.DnsLookupFamily dns_lookup_family = 2 [(.validate.rules) = { ... }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) = { ... }hasDnsRefreshRate in interface DnsCacheConfigOrBuilderpublic 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) = { ... }getDnsRefreshRate in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setDnsRefreshRate(com.google.protobuf.Duration value)
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) = { ... }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) = { ... }public DnsCacheConfig.Builder mergeDnsRefreshRate(com.google.protobuf.Duration value)
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) = { ... }public DnsCacheConfig.Builder 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) = { ... }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) = { ... }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) = { ... }getDnsRefreshRateOrBuilder in interface DnsCacheConfigOrBuilderpublic 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) = { ... }hasHostTtl in interface DnsCacheConfigOrBuilderpublic 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) = { ... }getHostTtl in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setHostTtl(com.google.protobuf.Duration value)
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) = { ... }public DnsCacheConfig.Builder setHostTtl(com.google.protobuf.Duration.Builder builderForValue)
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) = { ... }public DnsCacheConfig.Builder mergeHostTtl(com.google.protobuf.Duration value)
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) = { ... }public DnsCacheConfig.Builder 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) = { ... }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) = { ... }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) = { ... }getHostTtlOrBuilder in interface DnsCacheConfigOrBuilderpublic 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) = { ... }hasMaxHosts in interface DnsCacheConfigOrBuilderpublic 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) = { ... }getMaxHosts in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setMaxHosts(com.google.protobuf.UInt32Value value)
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) = { ... }public DnsCacheConfig.Builder setMaxHosts(com.google.protobuf.UInt32Value.Builder builderForValue)
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) = { ... }public DnsCacheConfig.Builder mergeMaxHosts(com.google.protobuf.UInt32Value value)
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) = { ... }public DnsCacheConfig.Builder 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) = { ... }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) = { ... }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) = { ... }getMaxHostsOrBuilder in interface DnsCacheConfigOrBuilderpublic 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.config.cluster.v3.Cluster.RefreshRate dns_failure_refresh_rate = 6;hasDnsFailureRefreshRate in interface DnsCacheConfigOrBuilderpublic Cluster.RefreshRate 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.config.cluster.v3.Cluster.RefreshRate dns_failure_refresh_rate = 6;getDnsFailureRefreshRate in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setDnsFailureRefreshRate(Cluster.RefreshRate value)
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.config.cluster.v3.Cluster.RefreshRate dns_failure_refresh_rate = 6;public DnsCacheConfig.Builder 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. If this setting is not specified, the failure refresh rate defaults to the dns_refresh_rate.
.envoy.config.cluster.v3.Cluster.RefreshRate dns_failure_refresh_rate = 6;public DnsCacheConfig.Builder mergeDnsFailureRefreshRate(Cluster.RefreshRate value)
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.config.cluster.v3.Cluster.RefreshRate dns_failure_refresh_rate = 6;public DnsCacheConfig.Builder 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.config.cluster.v3.Cluster.RefreshRate dns_failure_refresh_rate = 6;public Cluster.RefreshRate.Builder 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.config.cluster.v3.Cluster.RefreshRate dns_failure_refresh_rate = 6;public Cluster.RefreshRateOrBuilder 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.config.cluster.v3.Cluster.RefreshRate dns_failure_refresh_rate = 6;getDnsFailureRefreshRateOrBuilder in interface DnsCacheConfigOrBuilderpublic boolean hasDnsCacheCircuitBreaker()
The config of circuit breakers for resolver. It provides a configurable threshold. If `envoy.reloadable_features.enable_dns_cache_circuit_breakers` is enabled, envoy will use dns cache circuit breakers with default settings even if this value is not set.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheCircuitBreakers dns_cache_circuit_breaker = 7;hasDnsCacheCircuitBreaker in interface DnsCacheConfigOrBuilderpublic DnsCacheCircuitBreakers getDnsCacheCircuitBreaker()
The config of circuit breakers for resolver. It provides a configurable threshold. If `envoy.reloadable_features.enable_dns_cache_circuit_breakers` is enabled, envoy will use dns cache circuit breakers with default settings even if this value is not set.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheCircuitBreakers dns_cache_circuit_breaker = 7;getDnsCacheCircuitBreaker in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setDnsCacheCircuitBreaker(DnsCacheCircuitBreakers value)
The config of circuit breakers for resolver. It provides a configurable threshold. If `envoy.reloadable_features.enable_dns_cache_circuit_breakers` is enabled, envoy will use dns cache circuit breakers with default settings even if this value is not set.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheCircuitBreakers dns_cache_circuit_breaker = 7;public DnsCacheConfig.Builder setDnsCacheCircuitBreaker(DnsCacheCircuitBreakers.Builder builderForValue)
The config of circuit breakers for resolver. It provides a configurable threshold. If `envoy.reloadable_features.enable_dns_cache_circuit_breakers` is enabled, envoy will use dns cache circuit breakers with default settings even if this value is not set.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheCircuitBreakers dns_cache_circuit_breaker = 7;public DnsCacheConfig.Builder mergeDnsCacheCircuitBreaker(DnsCacheCircuitBreakers value)
The config of circuit breakers for resolver. It provides a configurable threshold. If `envoy.reloadable_features.enable_dns_cache_circuit_breakers` is enabled, envoy will use dns cache circuit breakers with default settings even if this value is not set.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheCircuitBreakers dns_cache_circuit_breaker = 7;public DnsCacheConfig.Builder clearDnsCacheCircuitBreaker()
The config of circuit breakers for resolver. It provides a configurable threshold. If `envoy.reloadable_features.enable_dns_cache_circuit_breakers` is enabled, envoy will use dns cache circuit breakers with default settings even if this value is not set.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheCircuitBreakers dns_cache_circuit_breaker = 7;public DnsCacheCircuitBreakers.Builder getDnsCacheCircuitBreakerBuilder()
The config of circuit breakers for resolver. It provides a configurable threshold. If `envoy.reloadable_features.enable_dns_cache_circuit_breakers` is enabled, envoy will use dns cache circuit breakers with default settings even if this value is not set.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheCircuitBreakers dns_cache_circuit_breaker = 7;public DnsCacheCircuitBreakersOrBuilder getDnsCacheCircuitBreakerOrBuilder()
The config of circuit breakers for resolver. It provides a configurable threshold. If `envoy.reloadable_features.enable_dns_cache_circuit_breakers` is enabled, envoy will use dns cache circuit breakers with default settings even if this value is not set.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheCircuitBreakers dns_cache_circuit_breaker = 7;getDnsCacheCircuitBreakerOrBuilder in interface DnsCacheConfigOrBuilderpublic boolean getUseTcpForDnsLookups()
[#next-major-version: Reconcile DNS options in a single message.] Always use TCP queries instead of UDP queries for DNS lookups. Setting this value causes failure if the ``envoy.restart_features.use_apple_api_for_dns_lookups`` runtime value is true during server startup. Apple' API only uses UDP for DNS resolution.
bool use_tcp_for_dns_lookups = 8;getUseTcpForDnsLookups in interface DnsCacheConfigOrBuilderpublic DnsCacheConfig.Builder setUseTcpForDnsLookups(boolean value)
[#next-major-version: Reconcile DNS options in a single message.] Always use TCP queries instead of UDP queries for DNS lookups. Setting this value causes failure if the ``envoy.restart_features.use_apple_api_for_dns_lookups`` runtime value is true during server startup. Apple' API only uses UDP for DNS resolution.
bool use_tcp_for_dns_lookups = 8;public DnsCacheConfig.Builder clearUseTcpForDnsLookups()
[#next-major-version: Reconcile DNS options in a single message.] Always use TCP queries instead of UDP queries for DNS lookups. Setting this value causes failure if the ``envoy.restart_features.use_apple_api_for_dns_lookups`` runtime value is true during server startup. Apple' API only uses UDP for DNS resolution.
bool use_tcp_for_dns_lookups = 8;public final DnsCacheConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>public final DnsCacheConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DnsCacheConfig.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.