An exception of this type is thrown by a thread blocked in an I/O operation on a channel when another thread calls its interrupt( ) method. This exception is a subclass of AsynchronousCloseException and the channel will be closed as a side-effect of the thread interruption. Figure 13-18. java.nio.channels.ClosedByInterruptExceptionpublic class ClosedByInterruptException extends AsynchronousCloseException { // Public Constructors public ClosedByInterruptException ( ); } |