Class AbstractNioChannel

    • Field Detail

      • readInterestOp

        protected final int readInterestOp
      • readOps

        protected final NioIoOps readOps
    • Method Detail

      • addAndSubmit

        protected void addAndSubmit​(NioIoOps addOps)
      • removeAndSubmit

        protected void removeAndSubmit​(NioIoOps removeOps)
      • isOpen

        public boolean isOpen()
        Description copied from interface: Channel
        Returns true if the Channel is open and may get active later
      • isReadPending

        @Deprecated
        protected boolean isReadPending()
        Deprecated.
        No longer supported. No longer supported.
      • setReadPending

        @Deprecated
        protected void setReadPending​(boolean readPending)
        Deprecated.
        Use clearReadPending() if appropriate instead. No longer supported.
      • clearReadPending

        protected final void clearReadPending()
        Set read pending to false.
      • doFinishConnect

        protected abstract void doFinishConnect()
                                         throws Exception
        Finish the connect
        Throws:
        Exception
      • newDirectBuffer

        protected final io.netty.buffer.ByteBuf newDirectBuffer​(io.netty.buffer.ByteBuf buf)
        Returns an off-heap copy of the specified ByteBuf, and releases the original one. Note that this method does not create an off-heap copy if the allocation / deallocation cost is too high, but just returns the original ByteBuf..
      • newDirectBuffer

        protected final io.netty.buffer.ByteBuf newDirectBuffer​(io.netty.util.ReferenceCounted holder,
                                                                io.netty.buffer.ByteBuf buf)
        Returns an off-heap copy of the specified ByteBuf, and releases the specified holder. The caller must ensure that the holder releases the original ByteBuf when the holder is released by this method. Note that this method does not create an off-heap copy if the allocation / deallocation cost is too high, but just returns the original ByteBuf..