Class ClosingChannelExceptionHandler<T extends java.nio.channels.Channel>

  • All Implemented Interfaces:
    java.util.EventListener, org.xnio.ChannelExceptionHandler<T>

    public class ClosingChannelExceptionHandler<T extends java.nio.channels.Channel>
    extends java.lang.Object
    implements org.xnio.ChannelExceptionHandler<T>
    Channel exception handler that closes the channel, logs a debug level message and closes arbitrary other resources.
    Author:
    Stuart Douglas
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleException​(T t, java.io.IOException e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClosingChannelExceptionHandler

        public ClosingChannelExceptionHandler​(java.io.Closeable... closable)
    • Method Detail

      • handleException

        public void handleException​(T t,
                                    java.io.IOException e)
        Specified by:
        handleException in interface org.xnio.ChannelExceptionHandler<T extends java.nio.channels.Channel>