Package org.apache.pulsar.client.impl
Class MessagePayloadImpl
- java.lang.Object
-
- org.apache.pulsar.client.impl.MessagePayloadImpl
-
- All Implemented Interfaces:
org.apache.pulsar.client.api.MessagePayload
public class MessagePayloadImpl extends java.lang.Object implements org.apache.pulsar.client.api.MessagePayloadA wrapper ofByteBufthat implementsMessagePayload.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]copiedBuffer()static MessagePayloadImplcreate(@NonNull io.netty.buffer.ByteBuf byteBuf)voidrelease()
-
-
-
Method Detail
-
create
public static MessagePayloadImpl create(@NonNull @NonNull io.netty.buffer.ByteBuf byteBuf)
-
release
public void release()
- Specified by:
releasein interfaceorg.apache.pulsar.client.api.MessagePayload
-
copiedBuffer
public byte[] copiedBuffer()
- Specified by:
copiedBufferin interfaceorg.apache.pulsar.client.api.MessagePayload
-
-