Class WriteRequest

    • Constructor Detail

      • WriteRequest

        public WriteRequest​(io.netty.buffer.ByteBuf buffer)
    • Method Detail

      • getFileHandle

        public int getFileHandle()
      • getWriteOffset

        public long getWriteOffset()
        Specified by:
        getWriteOffset in interface ByteBuffersProvider
        Returns:
        the current offset to the buffer or channel receiving the written bytes.
      • getDataLength

        public int getDataLength()
      • getData

        public void getData​(java.nio.channels.GatheringByteChannel out)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • toByteBuffers

        public java.nio.ByteBuffer[] toByteBuffers()
        Converts this requests's payload into an array of NIO buffers. The returned buffers might or might not share the content with this request.
        Specified by:
        toByteBuffers in interface ByteBuffersProvider
        Returns:
        NIO buffer array produced from the Netty ByteBuf.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • refCnt

        public int refCnt()
        Specified by:
        refCnt in interface io.netty.util.ReferenceCounted
      • release

        public boolean release()
        Specified by:
        release in interface io.netty.util.ReferenceCounted
      • release

        public boolean release​(int decrement)
        Specified by:
        release in interface io.netty.util.ReferenceCounted
      • retain

        public WriteRequest retain​(int increment)
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
      • retain

        public WriteRequest retain()
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
      • touch

        public io.netty.util.ReferenceCounted touch()
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
      • touch

        public io.netty.util.ReferenceCounted touch​(java.lang.Object hint)
        Specified by:
        touch in interface io.netty.util.ReferenceCounted