Interface ByteBuffersProvider

  • All Superinterfaces:
    io.netty.util.ReferenceCounted
    All Known Implementing Classes:
    InboundReadResponse, WriteRequest

    public interface ByteBuffersProvider
    extends io.netty.util.ReferenceCounted
    This interface pulls out the two methods necessary to support the write.

    The reason for doing so is to avoid an additional buffer copy in translating a ThirdParty read request response into a write request.

    • Method Detail

      • toByteBuffers

        java.nio.ByteBuffer[] toByteBuffers()
        Returns:
        NIO buffer array produced from the Netty ByteBuf.
      • getWriteOffset

        long getWriteOffset()
        Returns:
        the current offset to the buffer or channel receiving the written bytes.