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

org.xnio.ChannelExceptionHandler Maven / Gradle / Ivy

There is a newer version: 62
Show newest version

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy