Payload from DataBuffers
and vice versa.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ByteBuf | |
| private static ByteBuffer | |
| public static Payload | Returns: the created payloadthe data part for the payload data, DataBuffer the metadata part for the payload metadata)Create a Payload from the given metadata and data. |
| public static Payload | Returns: created payloadthe data part for the payload data)Create a Payload with data only. |
| public static DataBuffer | Returns: the createdDataBuffer instancethe payload to process payload, DataBufferFactory the DataBufferFactory to wrap with bufferFactory)Use this method to slice, retain and wrap the data portion of the
|
| PayloadUtils | back to summary |
|---|---|
| public PayloadUtils() | |
| asByteBuf | back to summary |
|---|---|
| pack-priv static ByteBuf asByteBuf(DataBuffer buffer) | |
| asByteBuffer | back to summary |
|---|---|
| private static ByteBuffer asByteBuffer(DataBuffer dataBuffer) | |
| createPayload | back to summary |
|---|---|
| public static Payload createPayload(DataBuffer data, DataBuffer metadata) Create a Payload from the given metadata and data. If at least one is
| |
| createPayload | back to summary |
|---|---|
| public static Payload createPayload(DataBuffer data) Create a Payload with data only. The created payload is
| |
| retainDataAndReleasePayload | back to summary |
|---|---|
| public static DataBuffer retainDataAndReleasePayload(Payload payload, DataBufferFactory bufferFactory) Use this method to slice, retain and wrap the data portion of the
| |