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 Summary
Nested Classes -
Method Summary
Modifier 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
-
builder
Creates a builder forNameResolverProvider.- Returns:
- a new
NameResolverProvider.NameResolverSpec
-
bindAddressSupplier
Returns 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
-
cacheMaxTimeToLive
Returns 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
-
cacheMinTimeToLive
Returns 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
-
cacheNegativeTimeToLive
Returns 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
-
datagramChannelStrategy
Returns the configured customDnsNameResolverChannelStrategy.- Returns:
- the configured custom
DnsNameResolverChannelStrategy - Since:
- 1.2.3
-
dnsAddressResolverGroupProvider
public @Nullable Function<DnsNameResolverBuilder,DnsAddressResolverGroup> dnsAddressResolverGroupProvider()Returns the configured custom provider ofDnsAddressResolverGroupor null.- Returns:
- the configured custom provider of
DnsAddressResolverGroupor null - Since:
- 1.1.6
-
hostsFileEntriesResolver
Returns 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
-
isCompleteOncePreferredResolved
public 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 returnedFutureas soon as all queries for the preferred address type are complete
-
isDisableOptionalRecord
public boolean isDisableOptionalRecord()Returnstrueif an optional record inclusion is disabled.- Returns:
trueif an optional record inclusion is disabled
-
isDisableRecursionDesired
public boolean isDisableRecursionDesired()Returnstrueif recursion desired is disabled.- Returns:
trueif recursion desired is disabled
-
isPreferNative
public 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)
-
isRetryTcpOnTimeout
public 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
-
isRoundRobinSelection
public boolean isRoundRobinSelection()Returns true ifRoundRobinDnsAddressResolverGroupis in use.- Returns:
- true if
RoundRobinDnsAddressResolverGroupis in use
-
loopResources
Returns the configuredLoopResourcesor null.- Returns:
- the configured
LoopResourcesor null
-
maxPayloadSize
public int maxPayloadSize()Returns the configured capacity of the datagram packet buffer.- Returns:
- the configured capacity of the datagram packet buffer.
-
maxQueriesPerResolve
public 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
-
ndots
public 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
-
queryTimeout
Returns the configured timeout of each DNS query performed by this resolver.- Returns:
- the configured timeout of each DNS query performed by this resolver
-
resolveCache
Returns the configured DNS resolver cache or null.- Returns:
- the configured DNS resolver cache or null
- Since:
- 1.0.27
-
resolvedAddressTypes
Returns 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
-
searchDomains
Returns the configured list of search domains of the resolver or null.- Returns:
- the configured list of search domains of the resolver or null
-
equals
-
hashCode
public int hashCode() -
newNameResolverGroup
public DnsAddressResolverGroup newNameResolverGroup(LoopResources defaultLoopResources, boolean defaultPreferNative) Provides a newDnsAddressResolverGroup.- Parameters:
defaultLoopResources- the defaultLoopResourceswhenLoopResourcesis not specified- Returns:
- a new
DnsAddressResolverGroup
-