All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.couchbase.client.core.deps.org.xbill.DNS.ResolverListener Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 1999-2004 Brian Wellington ([email protected])

package com.couchbase.client.core.deps.org.xbill.DNS;

import java.util.EventListener;

/**
 * An interface to the asynchronous resolver.
 *
 * @see Resolver
 * @author Brian Wellington
 * @deprecated Use {@link Resolver#sendAsync(Message)}
 */
@Deprecated
public interface ResolverListener extends EventListener {

  /**
   * The callback used by an asynchronous resolver
   *
   * @param id The identifier returned by Resolver.sendAsync()
   * @param m The response message as returned by the Resolver
   */
  void receiveMessage(Object id, Message m);

  /**
   * The callback used by an asynchronous resolver when an exception is thrown
   *
   * @param id The identifier returned by Resolver.sendAsync()
   * @param e The thrown exception
   */
  void handleException(Object id, Exception e);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy