java.lang.Object
org.apache.flink.runtime.io.network.partition.hybrid.tiered.netty.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 Details

    • newBuffer

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

      public static NettyPayload newError(Throwable error)
    • newSegment

      public static NettyPayload newSegment(int segmentId)
    • getBuffer

      public Optional<Buffer> getBuffer()
    • getError

      public Optional<Throwable> getError()
    • getBufferIndex

      public int getBufferIndex()
    • getSubpartitionId

      public int getSubpartitionId()
    • getSegmentId

      public int getSegmentId()