org.xnio.ChannelExceptionHandler Maven / Gradle / Ivy
package org.xnio;
import java.io.IOException;
import java.nio.channels.Channel;
import java.util.EventListener;
/**
* An exception handler for utility channel listeners.
*
* @author David M. Lloyd
*/
public interface ChannelExceptionHandler extends EventListener {
/**
* Handle an exception on the channel.
*
* @param channel the channel
* @param exception the exception
*/
void handleException(T channel, IOException exception);
}