Class NettyPayload


  • public class NettyPayload
    extends Object
    The NettyPayload represents the payload that will be transferred to netty connection. It could indicate a combination of buffer, buffer index, and its subpartition id, and it could also indicate an error or a segment id.
    • Method Detail

      • newBuffer

        public static NettyPayload newBuffer​(Buffer buffer,
                                             int bufferIndex,
                                             int subpartitionId)
      • newSegment

        public static NettyPayload newSegment​(int segmentId)
      • getBufferIndex

        public int getBufferIndex()
      • getSubpartitionId

        public int getSubpartitionId()
      • getSegmentId

        public int getSegmentId()