| Modifier and Type | Field and Description |
|---|---|
| private ByteBuf | |
| private final Recycler. | |
| private ByteBuf | |
| private static final Recycler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public static Payload | |
| public ByteBuf | |
| protected void | deallocate()
Implements abstract io. refCnt() is equals 0.
|
| pack-priv void | ensureAccessible()
Should be called by every method that tries to access the buffers content to check if the buffer was released before. |
| public boolean | hasMetadata()
Implements io. |
| pack-priv boolean | isAccessible()
Used internally by |
| public ByteBuf | metadata()
Implements io. |
| public ByteBufPayload | retain()
Overrides io. Implements io. 1.
|
| public ByteBufPayload | retain(int increment)
Overrides io. Implements io. increment.
|
| public ByteBuf | |
| public ByteBuf | |
| public ByteBufPayload | touch()
Overrides io. Implements io. |
| public ByteBufPayload | touch(Object hint)
Implements io. |
| data | back to summary |
|---|---|
| private ByteBuf data | |
| handle | back to summary |
|---|---|
| private final Recycler. | |
| metadata | back to summary |
|---|---|
| private ByteBuf metadata | |
| RECYCLER | back to summary |
|---|---|
| private static final Recycler<ByteBufPayload> RECYCLER | |
| ByteBufPayload | back to summary |
|---|---|
| private ByteBufPayload(final Recycler. | |
| create | back to summary |
|---|---|
| public static Payload create(String data) Static factory method for a text payload. Mainly looks better than "new ByteBufPayload(data)" | |
| create | back to summary |
|---|---|
| public static Payload create(String data, String metadata) Static factory method for a text payload. Mainly looks better than "new ByteBufPayload(data, metadata)" | |
| create | back to summary |
|---|---|
| public static Payload create(CharSequence data, Charset dataCharset) | |
| create | back to summary |
|---|---|
| public static Payload create(CharSequence data, Charset dataCharset, CharSequence metadata, Charset metadataCharset) | |
| create | back to summary |
|---|---|
| public static Payload create(byte[] data) | |
| create | back to summary |
|---|---|
| public static Payload create(byte[] data, byte[] metadata) | |
| create | back to summary |
|---|---|
| public static Payload create(ByteBuffer data) | |
| create | back to summary |
|---|---|
| public static Payload create(ByteBuffer data, ByteBuffer metadata) | |
| create | back to summary |
|---|---|
| public static Payload create(ByteBuf data) | |
| create | back to summary |
|---|---|
| public static Payload create(ByteBuf data, ByteBuf metadata) | |
| create | back to summary |
|---|---|
| public static Payload create(Payload payload) | |
| data | back to summary |
|---|---|
| public ByteBuf data() Implements io. Doc from io. 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(). | |
| deallocate | back to summary |
|---|---|
| protected void deallocate() Implements abstract io. Doc from io. Called once
| |
| ensureAccessible | back to summary |
|---|---|
| pack-priv void ensureAccessible() Should be called by every method that tries to access the buffers content to check if the buffer was released before. | |
| hasMetadata | back to summary |
|---|---|
| public boolean hasMetadata() Implements io. Doc from io. Returns whether the payload has metadata, useful for tell if metadata is empty or not present.
| |
| isAccessible | back to summary |
|---|---|
| pack-priv boolean isAccessible() Used internally by | |
| metadata | back to summary |
|---|---|
| public ByteBuf metadata() Implements io. Doc from io. 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 ByteBufPayload retain() Overrides io. Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public ByteBufPayload retain(int increment) Overrides io. Implements io. Doc from io. Increases the reference count by the specified
| |
| sliceData | back to summary |
|---|---|
| public ByteBuf sliceData() Implements io. Doc from io. Returns the Payload data. Always non-null. | |
| sliceMetadata | back to summary |
|---|---|
| public ByteBuf sliceMetadata() Implements io. Doc from io. Returns a slice Payload metadata. Always non-null, check | |
| touch | back to summary |
|---|---|
| public ByteBufPayload touch() Overrides io. Implements io. Doc from 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 ByteBufPayload touch(Object hint) Implements io. Doc from 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
| |