ResolverListener (dnsjava documentation)
Date: 2013-04-10

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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

          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

          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