Package | Description |
---|---|
io.vertx.core | |
io.vertx.core.dns |
Modifier and Type | Method and Description |
---|---|
AddressResolverOptions |
VertxOptions.getAddressResolverOptions() |
Modifier and Type | Method and Description |
---|---|
VertxOptions |
VertxOptions.setAddressResolverOptions(AddressResolverOptions addressResolverOptions)
Sets the address resolver configuration to configure resolving DNS servers, cache TTL, etc...
|
Modifier and Type | Method and Description |
---|---|
AddressResolverOptions |
AddressResolverOptions.addServer(String server)
Add a DNS server address.
|
AddressResolverOptions |
AddressResolverOptions.setCacheMaxTimeToLive(int cacheMaxTimeToLive)
Set the cache maximum TTL value in seconds.
|
AddressResolverOptions |
AddressResolverOptions.setCacheMinTimeToLive(int cacheMinTimeToLive)
Set the cache minimum TTL value in seconds.
|
AddressResolverOptions |
AddressResolverOptions.setCacheNegativeTimeToLive(int cacheNegativeTimeToLive)
Set the negative cache TTL value in seconds.
|
AddressResolverOptions |
AddressResolverOptions.setHostsPath(String hostsPath)
Set the path of an alternate hosts configuration file to use instead of the one provided by the os.
|
AddressResolverOptions |
AddressResolverOptions.setHostsValue(Buffer hostsValue)
Set an alternate hosts configuration file to use instead of the one provided by the os.
|
AddressResolverOptions |
AddressResolverOptions.setMaxQueries(int maxQueries)
Set the maximum number of queries when an hostname is resolved.
|
AddressResolverOptions |
AddressResolverOptions.setOptResourceEnabled(boolean optResourceEnabled)
Set to true to enable the automatic inclusion in DNS queries of an optional record that hints
the remote DNS server about how much data the resolver can read per response.
|
AddressResolverOptions |
AddressResolverOptions.setQueryTimeout(long queryTimeout)
Set the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed.
|
AddressResolverOptions |
AddressResolverOptions.setRdFlag(boolean rdFlag)
Set the DNS queries Recursion Desired flag value.
|
AddressResolverOptions |
AddressResolverOptions.setServers(List<String> servers)
Set the list of DNS server addresses, an address is the IP of the dns server, followed by an optional
colon and a port, e.g
8.8.8.8 or {code 192.168.0.1:40000}. |
Constructor and Description |
---|
AddressResolverOptions(AddressResolverOptions other) |
Copyright © 2016. All rights reserved.