Module 

Interface CloseableChannel

    • Method Detail

      • getCloseSetter

        ChannelListener.Setter<? extends CloseableChannel> getCloseSetter()
        Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.
        Returns:
        the setter
      • getWorker

        XnioWorker getWorker()
        Get the worker for this channel.
        Returns:
        the worker
      • getIoThread

        XnioIoThread getIoThread()
        Get the I/O thread associated with this channel.
        Returns:
        the I/O thread associated with this channel
      • close

        void close()
            throws java.io.IOException
        Close this channel. When a channel is closed, its close listener is invoked. Invoking this method more than once has no additional effect.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.nio.channels.Channel
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.nio.channels.InterruptibleChannel
        Throws:
        java.io.IOException - if the close failed