Name

ClosedByInterruptException

Synopsis

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.

java.nio.channels.ClosedByInterruptException

Figure 13-18. java.nio.channels.ClosedByInterruptException

public class ClosedByInterruptException extends AsynchronousCloseException {
// Public Constructors
     public ClosedByInterruptException( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.