Uses of Interface
org.apache.pulsar.client.api.MessagePayload
Packages that use MessagePayload
-
Uses of MessagePayload in org.apache.pulsar.client.api
Methods in org.apache.pulsar.client.api that return MessagePayloadModifier and TypeMethodDescriptionMessagePayloadFactory.wrap
(byte[] bytes) Create a payload whose underlying buffer refers to a byte array.MessagePayloadFactory.wrap
(ByteBuffer buffer) Create a payload whose underlying buffer refers to a NIO buffer.Methods in org.apache.pulsar.client.api with parameters of type MessagePayloadModifier and TypeMethodDescription<T> Message
<T> MessagePayloadContext.asSingleMessage
(MessagePayload payload, Schema<T> schema) Convert the given payload to a single message if the entry is not a batch.<T> Message
<T> MessagePayloadContext.getMessageAt
(int index, int numMessages, MessagePayload payload, boolean containMetadata, Schema<T> schema) Get the internal single message with a specific index from a payload if the payload is a batch.<T> void
MessagePayloadProcessor.process
(MessagePayload payload, MessagePayloadContext context, Schema<T> schema, Consumer<Message<T>> messageConsumer) Process the message payload.