public class RawMessageImpl extends Object implements RawMessage
| Constructor and Description |
|---|
RawMessageImpl(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData id,
io.netty.buffer.ByteBuf headersAndPayload) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static RawMessage |
deserializeFrom(io.netty.buffer.ByteBuf buffer) |
io.netty.buffer.ByteBuf |
getHeadersAndPayload()
Get a ByteBuf which contains the headers and payload of the message.
|
org.apache.pulsar.client.api.MessageId |
getMessageId()
Get the message ID of this message.
|
org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData |
getMessageIdData()
Get the protobuf representation of the message ID of this message.
|
io.netty.buffer.ByteBuf |
serialize()
Serialize a raw message to a ByteBuf.
|
public RawMessageImpl(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData id,
io.netty.buffer.ByteBuf headersAndPayload)
public org.apache.pulsar.client.api.MessageId getMessageId()
RawMessagegetMessageId in interface RawMessagepublic org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageIdData()
RawMessagegetMessageIdData in interface RawMessagepublic io.netty.buffer.ByteBuf getHeadersAndPayload()
RawMessagegetHeadersAndPayload in interface RawMessagepublic void close()
close in interface AutoCloseableclose in interface RawMessagepublic io.netty.buffer.ByteBuf serialize()
RawMessageserialize in interface RawMessagepublic static RawMessage deserializeFrom(io.netty.buffer.ByteBuf buffer)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.