org.xnio.ChannelExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xnio-api Show documentation
Show all versions of xnio-api Show documentation
The API JAR of the XNIO project
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);
}