Interface InterruptibleChannel

    • Method Detail

      • close

        void close()
            throws IOException
        Closes the channel.

        Any threads that are blocked on I/O operations on this channel will be interrupted with an AsynchronousCloseException. Otherwise, this method behaves the same as defined in the Channel interface.

        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Channel
        Specified by:
        close in interface Closeable
        Throws:
        IOException - if an I/O error occurs while closing the channel.