APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.net.dns

public abstract sealed Class ResolverConfiguration

extends Object
permits ResolverConfigurationImpl
Class Inheritance
Known Direct Subclasses
sun.net.dns.ResolverConfigurationImpl
Imports
java.util.List

The configuration of the client resolver.

A ResolverConfiguration is a singleton that represents the configuration of the client resolver. The ResolverConfiguration is opened by invoking the open method.

Since
1.4

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
ResolverConfiguration.Options

Options representing certain resolver variables of a ResolverConfiguration.

Field Summary

Modifier and TypeField and Description
private static final Object
private static ResolverConfiguration

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract List<String>

Returns:

list of the name servers
nameservers
()

Returns a list of name servers used for host name lookup.

public static ResolverConfiguration

Returns:

the resolver configuration
open
()

Opens the resolver configuration.

public abstract ResolverConfiguration.Options

Returns:

options for the resolver
options
()

Returns the Options for the resolver.

public abstract List<String>

Returns:

list of domain names
searchlist
()

Returns a list corresponding to the domain search path.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lockback to summary
private static final Object lock
providerback to summary
private static ResolverConfiguration provider

Constructor Detail

ResolverConfigurationback to summary
protected ResolverConfiguration()

Method Detail

nameserversback to summary
public abstract List<String> nameservers()

Returns a list of name servers used for host name lookup. Each element in the list returns a java.lang.String containing the textual representation of the IP address of the name server.

Returns:List<String>

list of the name servers

openback to summary
public static ResolverConfiguration open()

Opens the resolver configuration.

Returns:ResolverConfiguration

the resolver configuration

optionsback to summary
public abstract ResolverConfiguration.Options options()

Returns the Options for the resolver.

Returns:ResolverConfiguration.Options

options for the resolver

searchlistback to summary
public abstract List<String> searchlist()

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 java.lang.String containing a domain name or suffix.

Returns:List<String>

list of domain names

sun.net.dns back to summary

public abstract Class ResolverConfiguration.Options

extends Object
Class Inheritance
Known Direct Subclasses
sun.net.dns.OptionsImpl

Options representing certain resolver variables of a ResolverConfiguration.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the resolver attempts value or -1 is unknown
attempts
()

Returns 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 unknown
retrans
()

Returns the basic retransmit timeout, in milliseconds, used by the resolver.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Optionsback to summary
public Options()

Method Detail

attemptsback 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.

Returns:int

the resolver attempts value or -1 is unknown

retransback 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.

Returns:int

the basic retransmit timeout value or -1 if unknown