| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | Returns: data as a bytebuf or slice of the dataReturns the Payloads' data without slicing if possible. |
| public default ByteBuffer | |
| public default String | |
| public default ByteBuffer | |
| public default String | |
| public boolean | Returns: whether payload has non-null (possibly empty) metadataReturns whether the payload has metadata, useful for tell if metadata is empty or not present. |
| public ByteBuf | Returns: metadata as a bytebuf or slice of the metadataReturns the Payloads' metadata without slicing if possible. |
| public Payload | |
| public Payload | retain(int increment)
Redeclares io. increment.
|
| public ByteBuf | |
| public ByteBuf | |
| public Payload | touch()
Redeclares io. |
| public Payload | touch(Object hint)
Redeclares io. |
| data | back to summary |
|---|---|
| public ByteBuf data() Returns the Payloads' data without slicing if possible. This is not safe and editing this could effect the payload. It is recommended to call sliceData().
| |
| getData | back to summary |
|---|---|
| public default ByteBuffer getData() | |
| getDataUtf8 | back to summary |
|---|---|
| public default String getDataUtf8() | |
| getMetadata | back to summary |
|---|---|
| public default ByteBuffer getMetadata() | |
| getMetadataUtf8 | back to summary |
|---|---|
| public default String getMetadataUtf8() | |
| hasMetadata | back to summary |
|---|---|
| public boolean hasMetadata() Returns whether the payload has metadata, useful for tell if metadata is empty or not present.
| |
| metadata | back to summary |
|---|---|
| public ByteBuf metadata() Returns the Payloads' metadata without slicing if possible. This is not safe and editing this could effect the payload. It is recommended to call sliceMetadata().
| |
| retain | back to summary |
|---|---|
| public Payload retain() Redeclares io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public Payload retain(int increment) Redeclares io. Increases the reference count by the specified
| |
| sliceData | back to summary |
|---|---|
| public ByteBuf sliceData() Returns the Payload data. Always non-null.
| |
| sliceMetadata | back to summary |
|---|---|
| public ByteBuf sliceMetadata() Returns a slice Payload metadata. Always non-null, check
| |
| touch | back to summary |
|---|---|
| public Payload touch() Redeclares io. Records the current access location of this object for debugging purposes. If this object is
determined to be leaked, the information recorded by this operation will be provided to you via
| |
| touch | back to summary |
|---|---|
| public Payload touch(Object hint) Redeclares io. Records the current access location of this object with an additional arbitrary information for
debugging purposes. If this object is determined to be leaked, the information recorded by this
operation will be provided to you via
| |