Class NettyPayload
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.hybrid.tiered.netty.NettyPayload
-
public class NettyPayload extends Object
TheNettyPayloadrepresents 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Buffer>getBuffer()intgetBufferIndex()Optional<Throwable>getError()intgetSegmentId()intgetSubpartitionId()static NettyPayloadnewBuffer(Buffer buffer, int bufferIndex, int subpartitionId)static NettyPayloadnewError(Throwable error)static NettyPayloadnewSegment(int segmentId)
-
-
-
Method Detail
-
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)
-
getBufferIndex
public int getBufferIndex()
-
getSubpartitionId
public int getSubpartitionId()
-
getSegmentId
public int getSegmentId()
-
-