| java.lang.Object org.xbill.DNS.ExtendedResolver
ExtendedResolver | public class ExtendedResolver implements Resolver(Code) | | An implementation of Resolver that can send queries to multiple servers,
sending the queries multiple times if necessary.
See Also: Resolver author: Brian Wellington |
addResolver | public void addResolver(Resolver r)(Code) | | Adds a new resolver to be used by this ExtendedResolver
|
deleteResolver | public void deleteResolver(Resolver r)(Code) | | Deletes a resolver used by this ExtendedResolver
|
getResolver | public Resolver getResolver(int n)(Code) | | Returns the nth resolver used by this ExtendedResolver
|
getResolvers | public Resolver[] getResolvers()(Code) | | Returns all resolvers used by this ExtendedResolver
|
send | public Message send(Message query) throws IOException(Code) | | Sends a message and waits for a response. Multiple servers are queried,
and queries are sent multiple times until either a successful response
is received, or it is clear that there is no successful response.
Parameters: query - The query to send. The response. throws: IOException - An error occurred while sending or receiving. |
sendAsync | public Object sendAsync(Message query, ResolverListener listener)(Code) | | Asynchronously sends a message to multiple servers, potentially multiple
times, registering a listener to receive a callback on success or exception.
Multiple asynchronous lookups can be performed in parallel. Since the
callback may be invoked before the function returns, external
synchronization is necessary.
Parameters: query - The query to send Parameters: listener - The object containing the callbacks. An identifier, which is also a parameter in the callback |
setEDNS | public void setEDNS(int level)(Code) | | |
setEDNS | public void setEDNS(int level, int payloadSize, int flags, List options)(Code) | | |
setIgnoreTruncation | public void setIgnoreTruncation(boolean flag)(Code) | | |
setLoadBalance | public void setLoadBalance(boolean flag)(Code) | | Sets whether the servers should be load balanced.
Parameters: flag - If true, servers will be tried in round-robin order. If false,servers will always be queried in the same order. |
setPort | public void setPort(int port)(Code) | | |
setRetries | public void setRetries(int retries)(Code) | | Sets the number of retries sent to each server per query
|
setTCP | public void setTCP(boolean flag)(Code) | | |
setTimeout | public void setTimeout(int secs, int msecs)(Code) | | |
setTimeout | public void setTimeout(int secs)(Code) | | |
|
|