| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| public static final int | DEFAULT_CACHE_MAX_TIME_TO_LIVE
The default value for the cache max TTL = 0x7fffffff |
| public static final int | DEFAULT_CACHE_MIN_TIME_TO_LIVE
The default value for the cache min TTL = 0 |
| public static final int | DEFAULT_CACHE_NEGATIVE_TIME_TO_LIVE
The default value for the negative cache TTL = 0 |
| public static final int | DEFAULT_HOSTS_REFRESH_PERIOD
The default value for the hosts refresh value in millis = 0 (disabled) |
| public static final int | DEFAULT_MAX_QUERIES
The default value for the max dns queries per query = 4 |
| public static final int | DEFAULT_NDOTS
The default ndots value = loads the value from the OS on Linux otherwise use the value 1 |
| public static final boolean | DEFAULT_OPT_RESOURCE_ENABLED
The default value for |
| public static final int | DEFAULT_QUERY_TIMEOUT
The default value for the query timeout in millis = 5000 |
| public static final boolean | DEFAULT_RD_FLAG
The default value of the rd flag = true |
| public static final boolean | DEFAULT_ROTATE_SERVERS
The default servers rotate value = loads the value from the OS on Linux otherwise use the value false |
| public static final boolean | DEFAULT_ROUND_ROBIN_INET_ADDRESS
The default round robin inet address = false |
| public static final List | DEFAULT_SEACH_DOMAINS
Deprecated
instead use The default value of search domains = null
DEFAULT_SEARCH_DOMAINS
|
| public static final List | DEFAULT_SEARCH_DOMAINS
The default value of search domains = null |
| public static final List | DEFAULT_SERVERS
The default list of DNS servers = null (uses system name server's list like resolve.conf otherwise Google Public DNS) |
| private String | |
| private int | |
| private Buffer | hostsValue
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private int | |
| private int | |
| private boolean | |
| private long | |
| private boolean | |
| private boolean | |
| private boolean | |
| private List | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | AddressResolverOptions(JsonObject json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Method and Description |
|---|---|
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe search domain to add searchDomain)Add a DNS search domain. |
| public AddressResolverOptions | |
| public int | |
| public int | |
| public int | |
| public String | |
| public int | |
| public Buffer | Returns: the hosts configuration file value
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public int | |
| public int | |
| public long | |
| public boolean | |
| public List | |
| public List | |
| public boolean | |
| public boolean | |
| public boolean | |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe cache max TTL in seconds cacheMaxTimeToLive)Set the cache maximum TTL value in seconds. |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe cache min TTL in seconds cacheMinTimeToLive)Set the cache minimum TTL value in seconds. |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe cache negative TTL in seconds cacheNegativeTimeToLive)Set the negative cache TTL value in seconds. |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe hosts path hostsPath)Set the path of an alternate hosts configuration file to use instead of the one provided by the os. |
| public AddressResolverOptions | setHostsRefreshPeriod(int
the hosts configuration refresh period hostsRefreshPeriod)Set the hosts configuration refresh period in millis, |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe hosts content hostsValue)
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Set an alternate hosts configuration file to use instead of the one provided by the os. |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe max number of queries to be sent maxQueries)Set the maximum number of queries when an hostname is resolved. |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe new ndots value ndots)Set the ndots value used when resolving using search domains, the default value is |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlytrue to enable, false otherwise 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. |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe query timeout in milliseconds queryTimeout)Set the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed. |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe flag value rdFlag)Set the DNS queries Recursion Desired flag value. |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlySet to |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlySet to |
| public AddressResolverOptions | |
| public AddressResolverOptions | Returns: a reference to this, so the API can be used fluentlythe list of DNS servers 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 |
| public JsonObject | toJson()
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| cacheMaxTimeToLive | back to summary |
|---|---|
| private int cacheMaxTimeToLive | |
| cacheMinTimeToLive | back to summary |
|---|---|
| private int cacheMinTimeToLive | |
| cacheNegativeTimeToLive | back to summary |
|---|---|
| private int cacheNegativeTimeToLive | |
| DEFAULT_CACHE_MAX_TIME_TO_LIVE | back to summary |
|---|---|
| public static final int DEFAULT_CACHE_MAX_TIME_TO_LIVE The default value for the cache max TTL = 0x7fffffff | |
| DEFAULT_CACHE_MIN_TIME_TO_LIVE | back to summary |
|---|---|
| public static final int DEFAULT_CACHE_MIN_TIME_TO_LIVE The default value for the cache min TTL = 0 | |
| DEFAULT_CACHE_NEGATIVE_TIME_TO_LIVE | back to summary |
|---|---|
| public static final int DEFAULT_CACHE_NEGATIVE_TIME_TO_LIVE The default value for the negative cache TTL = 0 | |
| DEFAULT_HOSTS_REFRESH_PERIOD | back to summary |
|---|---|
| public static final int DEFAULT_HOSTS_REFRESH_PERIOD The default value for the hosts refresh value in millis = 0 (disabled) | |
| DEFAULT_MAX_QUERIES | back to summary |
|---|---|
| public static final int DEFAULT_MAX_QUERIES The default value for the max dns queries per query = 4 | |
| DEFAULT_NDOTS | back to summary |
|---|---|
| public static final int DEFAULT_NDOTS The default ndots value = loads the value from the OS on Linux otherwise use the value 1 | |
| DEFAULT_OPT_RESOURCE_ENABLED | back to summary |
|---|---|
| public static final boolean DEFAULT_OPT_RESOURCE_ENABLED The default value for | |
| DEFAULT_QUERY_TIMEOUT | back to summary |
|---|---|
| public static final int DEFAULT_QUERY_TIMEOUT The default value for the query timeout in millis = 5000 | |
| DEFAULT_RD_FLAG | back to summary |
|---|---|
| public static final boolean DEFAULT_RD_FLAG The default value of the rd flag = true | |
| DEFAULT_ROTATE_SERVERS | back to summary |
|---|---|
| public static final boolean DEFAULT_ROTATE_SERVERS The default servers rotate value = loads the value from the OS on Linux otherwise use the value false | |
| DEFAULT_ROUND_ROBIN_INET_ADDRESS | back to summary |
|---|---|
| public static final boolean DEFAULT_ROUND_ROBIN_INET_ADDRESS The default round robin inet address = false | |
| DEFAULT_SEACH_DOMAINS | back to summary |
|---|---|
| public static final List<String> DEFAULT_SEACH_DOMAINS
Deprecated instead use The default value of search domains = null | |
| DEFAULT_SEARCH_DOMAINS | back to summary |
|---|---|
| public static final List<String> DEFAULT_SEARCH_DOMAINS The default value of search domains = null | |
| DEFAULT_SERVERS | back to summary |
|---|---|
| public static final List<String> DEFAULT_SERVERS The default list of DNS servers = null (uses system name server's list like resolve.conf otherwise Google Public DNS) | |
| hostsPath | back to summary |
|---|---|
| private String hostsPath | |
| hostsRefreshPeriod | back to summary |
|---|---|
| private int hostsRefreshPeriod | |
| hostsValue | back to summary |
|---|---|
| private Buffer hostsValue
References Deprecated
See corresponding docs for further information. | |
| maxQueries | back to summary |
|---|---|
| private int maxQueries | |
| ndots | back to summary |
|---|---|
| private int ndots | |
| optResourceEnabled | back to summary |
|---|---|
| private boolean optResourceEnabled | |
| queryTimeout | back to summary |
|---|---|
| private long queryTimeout | |
| rdFlag | back to summary |
|---|---|
| private boolean rdFlag | |
| rotateServers | back to summary |
|---|---|
| private boolean rotateServers | |
| roundRobinInetAddress | back to summary |
|---|---|
| private boolean roundRobinInetAddress | |
| searchDomains | back to summary |
|---|---|
| private List<String> searchDomains | |
| servers | back to summary |
|---|---|
| private List<String> servers | |
| AddressResolverOptions | back to summary |
|---|---|
| public AddressResolverOptions() | |
| AddressResolverOptions | back to summary |
|---|---|
| public AddressResolverOptions(AddressResolverOptions other) | |
| AddressResolverOptions | back to summary |
|---|---|
| public AddressResolverOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. | |
| addSearchDomain | back to summary |
|---|---|
| public AddressResolverOptions addSearchDomain(String searchDomain) Add a DNS search domain.
| |
| addServer | back to summary |
|---|---|
| public AddressResolverOptions addServer(String server) Add a DNS server address.
| |
| getCacheMaxTimeToLive | back to summary |
|---|---|
public int getCacheMaxTimeToLive()
| |
| getCacheMinTimeToLive | back to summary |
|---|---|
public int getCacheMinTimeToLive()
| |
| getCacheNegativeTimeToLive | back to summary |
|---|---|
public int getCacheNegativeTimeToLive()
| |
| getHostsPath | back to summary |
|---|---|
public String getHostsPath()
| |
| getHostsRefreshPeriod | back to summary |
|---|---|
public int getHostsRefreshPeriod()
| |
| getHostsValue | back to summary |
|---|---|
| public Buffer getHostsValue()
References Deprecated
See corresponding docs for further information.
| |
| getMaxQueries | back to summary |
|---|---|
public int getMaxQueries()
| |
| getNdots | back to summary |
|---|---|
public int getNdots()
| |
| getQueryTimeout | back to summary |
|---|---|
public long getQueryTimeout()
| |
| getRdFlag | back to summary |
|---|---|
public boolean getRdFlag()
| |
| getSearchDomains | back to summary |
|---|---|
| public List | |
| getServers | back to summary |
|---|---|
| public List | |
| isOptResourceEnabled | back to summary |
|---|---|
public boolean isOptResourceEnabled()
| |
| isRotateServers | back to summary |
|---|---|
public boolean isRotateServers()
| |
| isRoundRobinInetAddress | back to summary |
|---|---|
public boolean isRoundRobinInetAddress()
| |
| setCacheMaxTimeToLive | back to summary |
|---|---|
| public AddressResolverOptions setCacheMaxTimeToLive(int cacheMaxTimeToLive) Set the cache maximum TTL value in seconds. After successful resolution IP addresses are cached with their DNS response TTL, use this to set a maximum value to all responses TTL.
| |
| setCacheMinTimeToLive | back to summary |
|---|---|
| public AddressResolverOptions setCacheMinTimeToLive(int cacheMinTimeToLive) Set the cache minimum TTL value in seconds. After resolution successful IP addresses are cached with their DNS response TTL, use this to set a minimum value to all responses TTL.
| |
| setCacheNegativeTimeToLive | back to summary |
|---|---|
| public AddressResolverOptions setCacheNegativeTimeToLive(int cacheNegativeTimeToLive) Set the negative cache TTL value in seconds. After a failed hostname resolution, DNS queries won't be retried for a period of time equals to the negative TTL. This allows to reduce the response time of negative replies and reduce the amount of messages to DNS servers.
| |
| setHostsPath | back to summary |
|---|---|
| public AddressResolverOptions setHostsPath(String hostsPath) Set the path of an alternate hosts configuration file to use instead of the one provided by the os. The default value is null, so the operating system hosts config is used.
| |
| setHostsRefreshPeriod | back to summary |
|---|---|
| public AddressResolverOptions setHostsRefreshPeriod(int hostsRefreshPeriod) Set the hosts configuration refresh period in millis,
The resolver caches the hosts configuration
| |
| setHostsValue | back to summary |
|---|---|
| public AddressResolverOptions setHostsValue(Buffer hostsValue)
References Deprecated
See corresponding docs for further information. Set an alternate hosts configuration file to use instead of the one provided by the os. The value should contain the hosts content literaly, for instance 127.0.0.1 localhost The default value is null, so the operating system hosts config is used.
| |
| setMaxQueries | back to summary |
|---|---|
| public AddressResolverOptions setMaxQueries(int maxQueries) Set the maximum number of queries when an hostname is resolved.
| |
| setNdots | back to summary |
|---|---|
| public AddressResolverOptions setNdots(int ndots) Set the ndots value used when resolving using search domains, the default value is
| |
| setOptResourceEnabled | back to summary |
|---|---|
| public 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.
| |
| setQueryTimeout | back to summary |
|---|---|
| public AddressResolverOptions setQueryTimeout(long queryTimeout) Set the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed.
| |
| setRdFlag | back to summary |
|---|---|
| public AddressResolverOptions setRdFlag(boolean rdFlag) Set the DNS queries Recursion Desired flag value.
| |
| setRotateServers | back to summary |
|---|---|
| public AddressResolverOptions setRotateServers(boolean rotateServers) Set to
| |
| setRoundRobinInetAddress | back to summary |
|---|---|
| public AddressResolverOptions setRoundRobinInetAddress(boolean roundRobinInetAddress) Set to
| |
| setSearchDomains | back to summary |
|---|---|
| public AddressResolverOptions setSearchDomains(List<String> searchDomains) Set the lists of DNS search domains. When the search domain list is null, the effective search domain list will be populated using the system DNS search domains. | |
| setServers | back to summary |
|---|---|
| public 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
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. | |