Package reactor.netty.transport
Class NameResolverProvider
java.lang.Object
reactor.netty.transport.NameResolverProvider
A 
NameResolverProvider will produce DnsAddressResolverGroup.- Since:
- 1.0.0
- Author:
- Violeta Georgieva
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescription@Nullable Supplier<? extends @Nullable SocketAddress>Returns the configured supplier of local address to bind to or null.builder()Creates a builder forNameResolverProvider.Returns the configured max time to live of the cached DNS resource records.Returns the configured min time to live of the cached DNS resource records.Returns the configured time to live of the cache for the failed DNS queries.Returns the configured customDnsNameResolverChannelStrategy.Returns the configured custom provider ofDnsAddressResolverGroupor null.booleaninthashCode()@Nullable HostsFileEntriesResolverReturns the configured customHostsFileEntriesResolverto be used for hosts file entries or null.booleanReturnstrueif the resolver notifies the returnedFutureas soon as all queries for the preferred address type are complete.booleanReturnstrueif an optional record inclusion is disabled.booleanReturnstrueif recursion desired is disabled.booleanReturnstrueif prefer native event loop and channel factory (e.g.booleanReturnstrueif the resolver will also fallback to TCP if a timeout is detected.booleanReturns true ifRoundRobinDnsAddressResolverGroupis in use.@Nullable LoopResourcesReturns the configuredLoopResourcesor null.intReturns the configured capacity of the datagram packet buffer.intReturns the configured maximum allowed number of DNS queries to send when resolving a host name.intndots()Returns the number of dots which must appear in a name before an initial absolute query is made.newNameResolverGroup(LoopResources defaultLoopResources, boolean defaultPreferNative) Provides a newDnsAddressResolverGroup.Returns the configured timeout of each DNS query performed by this resolver.@Nullable DnsCacheReturns the configured DNS resolver cache or null.@Nullable ResolvedAddressTypesReturns the configured list of the protocol families of the address resolved or null.Returns the configured list of search domains of the resolver or null.
- 
Method Details- 
builderCreates a builder forNameResolverProvider.- Returns:
- a new NameResolverProvider.NameResolverSpec
 
- 
bindAddressSupplierReturns the configured supplier of local address to bind to or null.- Returns:
- the configured supplier of local address to bind to or null
- Since:
- 1.0.14
 
- 
cacheMaxTimeToLiveReturns the configured max time to live of the cached DNS resource records.- Returns:
- the configured max time to live of the cached DNS resource records
 
- 
cacheMinTimeToLiveReturns the configured min time to live of the cached DNS resource records.- Returns:
- the configured min time to live of the cached DNS resource records
 
- 
cacheNegativeTimeToLiveReturns the configured time to live of the cache for the failed DNS queries.- Returns:
- the configured time to live of the cache for the failed DNS queries
 
- 
datagramChannelStrategyReturns the configured customDnsNameResolverChannelStrategy.- Returns:
- the configured custom DnsNameResolverChannelStrategy
- Since:
- 1.2.3
 
- 
dnsAddressResolverGroupProviderpublic @Nullable Function<DnsNameResolverBuilder,DnsAddressResolverGroup> dnsAddressResolverGroupProvider()Returns the configured custom provider ofDnsAddressResolverGroupor null.- Returns:
- the configured custom provider of DnsAddressResolverGroupor null
- Since:
- 1.1.6
 
- 
hostsFileEntriesResolverReturns the configured customHostsFileEntriesResolverto be used for hosts file entries or null.- Returns:
- the configured custom HostsFileEntriesResolverto be used for hosts file entries or null
- Since:
- 1.0.12
 
- 
isCompleteOncePreferredResolvedpublic boolean isCompleteOncePreferredResolved()Returnstrueif the resolver notifies the returnedFutureas soon as all queries for the preferred address type are complete.- Returns:
- trueif the resolver notifies the returned- Futureas soon as all queries for the preferred address type are complete
 
- 
isDisableOptionalRecordpublic boolean isDisableOptionalRecord()Returnstrueif an optional record inclusion is disabled.- Returns:
- trueif an optional record inclusion is disabled
 
- 
isDisableRecursionDesiredpublic boolean isDisableRecursionDesired()Returnstrueif recursion desired is disabled.- Returns:
- trueif recursion desired is disabled
 
- 
isPreferNativepublic boolean isPreferNative()Returnstrueif prefer native event loop and channel factory (e.g. epoll, io_uring or kqueue).- Returns:
- trueif prefer native event loop and channel factory (e.g. epoll, io_uring or kqueue)
 
- 
isRetryTcpOnTimeoutpublic boolean isRetryTcpOnTimeout()Returnstrueif the resolver will also fallback to TCP if a timeout is detected.- Returns:
- trueif the resolver will also fallback to TCP if a timeout is detected
- Since:
- 1.1.17
 
- 
isRoundRobinSelectionpublic boolean isRoundRobinSelection()Returns true ifRoundRobinDnsAddressResolverGroupis in use.- Returns:
- true if RoundRobinDnsAddressResolverGroupis in use
 
- 
loopResourcesReturns the configuredLoopResourcesor null.- Returns:
- the configured LoopResourcesor null
 
- 
maxPayloadSizepublic int maxPayloadSize()Returns the configured capacity of the datagram packet buffer.- Returns:
- the configured capacity of the datagram packet buffer.
 
- 
maxQueriesPerResolvepublic int maxQueriesPerResolve()Returns the configured maximum allowed number of DNS queries to send when resolving a host name.- Returns:
- the configured maximum allowed number of DNS queries to send when resolving a host name
 
- 
ndotspublic int ndots()Returns the number of dots which must appear in a name before an initial absolute query is made.- Returns:
- the number of dots which must appear in a name before an initial absolute query is made
 
- 
queryTimeoutReturns the configured timeout of each DNS query performed by this resolver.- Returns:
- the configured timeout of each DNS query performed by this resolver
 
- 
resolveCacheReturns the configured DNS resolver cache or null.- Returns:
- the configured DNS resolver cache or null
- Since:
- 1.0.27
 
- 
resolvedAddressTypesReturns the configured list of the protocol families of the address resolved or null.- Returns:
- the configured list of the protocol families of the address resolved or null
 
- 
searchDomainsReturns the configured list of search domains of the resolver or null.- Returns:
- the configured list of search domains of the resolver or null
 
- 
equals
- 
hashCodepublic int hashCode()
- 
newNameResolverGrouppublic DnsAddressResolverGroup newNameResolverGroup(LoopResources defaultLoopResources, boolean defaultPreferNative) Provides a newDnsAddressResolverGroup.- Parameters:
- defaultLoopResources- the default- LoopResourceswhen- LoopResourcesis not specified
- Returns:
- a new DnsAddressResolverGroup
 
 
-