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 ofDnsAddressResolverGroup
or null.boolean
int
hashCode()
@Nullable HostsFileEntriesResolver
Returns the configured customHostsFileEntriesResolver
to be used for hosts file entries or null.boolean
Returnstrue
if the resolver notifies the returnedFuture
as soon as all queries for the preferred address type are complete.boolean
Returnstrue
if an optional record inclusion is disabled.boolean
Returnstrue
if recursion desired is disabled.boolean
Returnstrue
if prefer native event loop and channel factory (e.g.boolean
Returnstrue
if the resolver will also fallback to TCP if a timeout is detected.boolean
Returns true ifRoundRobinDnsAddressResolverGroup
is in use.@Nullable LoopResources
Returns the configuredLoopResources
or null.int
Returns the configured capacity of the datagram packet buffer.int
Returns the configured maximum allowed number of DNS queries to send when resolving a host name.int
ndots()
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 DnsCache
Returns the configured DNS resolver cache or null.@Nullable ResolvedAddressTypes
Returns 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 ofDnsAddressResolverGroup
or null.- Returns:
- the configured custom provider of
DnsAddressResolverGroup
or null - Since:
- 1.1.6
-
hostsFileEntriesResolver
Returns the configured customHostsFileEntriesResolver
to be used for hosts file entries or null.- Returns:
- the configured custom
HostsFileEntriesResolver
to be used for hosts file entries or null - Since:
- 1.0.12
-
isCompleteOncePreferredResolved
public boolean isCompleteOncePreferredResolved()Returnstrue
if the resolver notifies the returnedFuture
as soon as all queries for the preferred address type are complete.- Returns:
true
if the resolver notifies the returnedFuture
as soon as all queries for the preferred address type are complete
-
isDisableOptionalRecord
public boolean isDisableOptionalRecord()Returnstrue
if an optional record inclusion is disabled.- Returns:
true
if an optional record inclusion is disabled
-
isDisableRecursionDesired
public boolean isDisableRecursionDesired()Returnstrue
if recursion desired is disabled.- Returns:
true
if recursion desired is disabled
-
isPreferNative
public boolean isPreferNative()Returnstrue
if prefer native event loop and channel factory (e.g. epoll, io_uring or kqueue).- Returns:
true
if prefer native event loop and channel factory (e.g. epoll, io_uring or kqueue)
-
isRetryTcpOnTimeout
public boolean isRetryTcpOnTimeout()Returnstrue
if the resolver will also fallback to TCP if a timeout is detected.- Returns:
true
if the resolver will also fallback to TCP if a timeout is detected- Since:
- 1.1.17
-
isRoundRobinSelection
public boolean isRoundRobinSelection()Returns true ifRoundRobinDnsAddressResolverGroup
is in use.- Returns:
- true if
RoundRobinDnsAddressResolverGroup
is in use
-
loopResources
Returns the configuredLoopResources
or null.- Returns:
- the configured
LoopResources
or 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 defaultLoopResources
whenLoopResources
is not specified- Returns:
- a new
DnsAddressResolverGroup
-