Class AbstractOioByteChannel

    • Method Detail

      • isInputShutdown

        protected abstract boolean isInputShutdown()
        Deprecated.
        Determine if the input side of this channel is shutdown.
        Returns:
        true if the input side of this channel is shutdown.
      • shutdownInput

        protected abstract ChannelFuture shutdownInput()
        Deprecated.
        Shutdown the input side of this channel.
        Returns:
        A channel future that will complete when the shutdown is complete.
      • filterOutboundMessage

        protected final java.lang.Object filterOutboundMessage​(java.lang.Object msg)
                                                        throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractChannel
        Invoked when a new message is added to a ChannelOutboundBuffer of this AbstractChannel, so that the Channel implementation converts the message to another. (e.g. heap buffer -> direct buffer)
        Overrides:
        filterOutboundMessage in class AbstractChannel
        Throws:
        java.lang.Exception
      • available

        protected abstract int available()
        Deprecated.
        Return the number of bytes ready to read from the underlying Socket.
      • doReadBytes

        protected abstract int doReadBytes​(ByteBuf buf)
                                    throws java.lang.Exception
        Deprecated.
        Read bytes from the underlying Socket.
        Parameters:
        buf - the ByteBuf into which the read bytes will be written
        Returns:
        amount the number of bytes read. This may return a negative amount if the underlying Socket was closed
        Throws:
        java.lang.Exception - is thrown if an error occurred
      • doWriteBytes

        protected abstract void doWriteBytes​(ByteBuf buf)
                                      throws java.lang.Exception
        Deprecated.
        Write the data which is hold by the ByteBuf to the underlying Socket.
        Parameters:
        buf - the ByteBuf which holds the data to transfer
        Throws:
        java.lang.Exception - is thrown if an error occurred
      • doWriteFileRegion

        protected abstract void doWriteFileRegion​(FileRegion region)
                                           throws java.lang.Exception
        Deprecated.
        Write the data which is hold by the FileRegion to the underlying Socket.
        Parameters:
        region - the FileRegion which holds the data to transfer
        Throws:
        java.lang.Exception - is thrown if an error occurred