public static abstract class

ResolverConfiguration.Options

extends Object
java.lang.Object
   ↳ sun.net.dns.ResolverConfiguration.Options

Class Overview

Options representing certain resolver variables of a ResolverConfiguration.

Summary

Public Constructors
ResolverConfiguration.Options()
Public Methods
int attempts()
Returns the maximum number of attempts the resolver will connect to each name server before giving up and returning an error.
int retrans()
Returns the basic retransmit timeout, in milliseconds, used by the resolver.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ResolverConfiguration.Options ()

Public Methods

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
  • the resolver attempts value or -1 is unknown

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
  • the basic retransmit timeout value or -1 if unknown