Top Description Inners Fields Constructors Methods
reactor.netty5.transport

public final Class NameResolverProvider

extends Object
Class Inheritance
Imports
io.netty5.channel.EventLoopGroup, io.netty5.channel.socket.DatagramChannel, .SocketChannel, io.netty5.handler.logging.LogLevel, io.netty5.resolver.AddressResolverGroup, .DefaultHostsFileEntriesResolver, .HostsFileEntriesResolver, .ResolvedAddressTypes, io.netty5.resolver.dns.DnsAddressResolverGroup, .DnsNameResolver, .DnsNameResolverBuilder, .DnsQueryLifecycleObserverFactory, .LoggingDnsQueryLifeCycleObserverFactory, .RoundRobinDnsAddressResolverGroup, io.netty5.util.concurrent.Future, reactor.netty5.resources.LoopResources, reactor.util.annotation.Nullable, java.net.SocketAddress, java.time.Duration, java.util.List, .Objects, java.util.function.Supplier

A NameResolverProvider will produce DnsAddressResolverGroup.
Author
Violeta Georgieva
Since
1.0.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
public static interface

Field Summary

Modifier and TypeField and Description
pack-priv final Supplier<? extends SocketAddress>
pack-priv final Duration
pack-priv final Duration
pack-priv final Duration
pack-priv final boolean
pack-priv final boolean
pack-priv final boolean
pack-priv final HostsFileEntriesResolver
pack-priv final DnsQueryLifecycleObserverFactory
pack-priv final LoopResources
pack-priv final int
pack-priv final int
pack-priv final int
pack-priv final boolean
pack-priv final Duration
pack-priv final ResolvedAddressTypes
pack-priv final boolean
pack-priv final Iterable<String>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Supplier<? extends SocketAddress>

Returns:

the configured supplier of local address to bind to or null
bindAddressSupplier
()

Returns the configured supplier of local address to bind to or null.

public static NameResolverProvider.NameResolverSpec
public Duration

Returns:

the configured max time to live of the cached DNS resource records
cacheMaxTimeToLive
()

Returns the configured max time to live of the cached DNS resource records.

public Duration

Returns:

the configured min time to live of the cached DNS resource records
cacheMinTimeToLive
()

Returns the configured min time to live of the cached DNS resource records.

public Duration

Returns:

the configured time to live of the cache for the failed DNS queries
cacheNegativeTimeToLive
()

Returns the configured time to live of the cache for the failed DNS queries.

public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public HostsFileEntriesResolver

Returns:

the configured custom HostsFileEntriesResolver to be used for hosts file entries or null
hostsFileEntriesResolver
()

Returns the configured custom HostsFileEntriesResolver to be used for hosts file entries or null.

public boolean

Returns:

true if the resolver notifies the returned Future as soon as all queries for the preferred address type are complete
isCompleteOncePreferredResolved
()

Returns true if the resolver notifies the returned Future as soon as all queries for the preferred address type are complete.

public boolean

Returns:

true if an optional record inclusion is disabled
isDisableOptionalRecord
()

Returns true if an optional record inclusion is disabled.

public boolean

Returns:

true if recursion desired is disabled
isDisableRecursionDesired
()

Returns true if recursion desired is disabled.

public boolean

Returns:

true if prefer native event loop and channel factory (e.g. epoll or kqueue)
isPreferNative
()

Returns true if prefer native event loop and channel factory (e.g. epoll or kqueue).

public boolean
public LoopResources

Returns:

the configured LoopResources or null
loopResources
()

Returns the configured LoopResources or null.

public int

Returns:

the configured capacity of the datagram packet buffer.
maxPayloadSize
()

Returns the configured capacity of the datagram packet buffer.

public int

Returns:

the configured maximum allowed number of DNS queries to send when resolving a host name
maxQueriesPerResolve
()

Returns the configured maximum allowed number of DNS queries to send when resolving a host name.

public int

Returns:

the number of dots which must appear in a name before an initial absolute query is made
ndots
()

Returns the number of dots which must appear in a name before an initial absolute query is made.

public DnsAddressResolverGroup
newNameResolverGroup(LoopResources
the default LoopResources when LoopResources is not specified
defaultLoopResources
,
boolean defaultPreferNative)

Provides a new DnsAddressResolverGroup.

public Duration

Returns:

the configured timeout of each DNS query performed by this resolver
queryTimeout
()

Returns the configured timeout of each DNS query performed by this resolver.

public ResolvedAddressTypes

Returns:

the configured list of the protocol families of the address resolved or null
resolvedAddressTypes
()

Returns the configured list of the protocol families of the address resolved or null.

public Iterable<String>

Returns:

the configured list of search domains of the resolver or null
searchDomains
()

Returns the configured list of search domains of the resolver or null.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait