Package java.nio.channels
Class ClosedByInterruptException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.nio.channels.ClosedChannelException
-
- java.nio.channels.AsynchronousCloseException
-
- java.nio.channels.ClosedByInterruptException
-
- All Implemented Interfaces:
Serializable
public class ClosedByInterruptException extends AsynchronousCloseException
AClosedByInterruptExceptionis thrown when a thread is interrupted in a blocking I/O operation.When the thread is interrupted by a call to
interrupt(), it closes the channel, sets the interrupt status of the thread totrueand throws aClosedByInterruptException.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClosedByInterruptException()Constructs aClosedByInterruptException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-