A ResolverConfiguration is a singleton that represents the
configuration of the client resolver. The ResolverConfiguration
is opened by invoking the open method.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ResolverConfiguration.
Options representing certain resolver variables of
a |
| Modifier and Type | Field and Description |
|---|---|
| private static final Object | |
| private static ResolverConfiguration |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract List | Returns: list of the name serversReturns a list of name servers used for host name lookup. |
| public static ResolverConfiguration | |
| public abstract ResolverConfiguration. | |
| public abstract List |
| lock | back to summary |
|---|---|
| private static final Object lock | |
| provider | back to summary |
|---|---|
| private static ResolverConfiguration provider | |
| ResolverConfiguration | back to summary |
|---|---|
| protected ResolverConfiguration() | |
| nameservers | back to summary |
|---|---|
| public abstract List Returns a list of name servers used for host name lookup.
Each element in the list returns a | |
| open | back to summary |
|---|---|
| public static ResolverConfiguration open() Opens the resolver configuration.
| |
| options | back to summary |
|---|---|
| public abstract ResolverConfiguration. Returns the
| |
| searchlist | back to summary |
|---|---|
| public abstract List Returns a list corresponding to the domain search path. The
list is ordered by the search order used for host name lookup.
Each element in the list returns a | |
ResolverConfiguration.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the resolver attempts value or -1 is unknownReturns the maximum number of attempts the resolver will connect to each name server before giving up and returning an error. |
| public int | Returns: the basic retransmit timeout value or -1 if unknownReturns the basic retransmit timeout, in milliseconds, used by the resolver. |
| Options | back to summary |
|---|---|
| public Options() | |
| attempts | back to summary |
|---|---|
| public int attempts() Returns the maximum number of attempts the resolver will connect to each name server before giving up and returning an error.
| |
| retrans | back to summary |
|---|---|
| public int retrans() Returns the basic retransmit timeout, in milliseconds, used by the resolver. The resolver will typically use an exponential backoff algorithm where the timeout is doubled for every retransmit attempt. The basic retransmit timeout, returned here, is the initial timeout for the exponential backoff algorithm.
| |