org.xbill.DNS
Interface ResolverListener

All Superinterfaces:
EventListener

public interface ResolverListener
extends EventListener

An interface to the asynchronous resolver.

Author:
Brian Wellington
See Also:
Resolver

Method Summary
 void handleException(Object id, Exception e)
          The callback used by an asynchronous resolver when an exception is thrown
 void receiveMessage(Object id, Message m)
          The callback used by an asynchronous resolver
 

Method Detail

receiveMessage

public void receiveMessage(Object id,
                           Message m)
The callback used by an asynchronous resolver

Parameters:
id - The identifier returned by Resolver.sendAsync()
m - The response message as returned by the Resolver

handleException

public void handleException(Object id,
                            Exception e)
The callback used by an asynchronous resolver when an exception is thrown

Parameters:
id - The identifier returned by Resolver.sendAsync()
e - The thrown exception