com.couchbase.client.core.deps.org.xbill.DNS.ResolverListener Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-io Show documentation
Show all versions of core-io Show documentation
The official Couchbase JVM Core IO Library
// 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);
}