Uses of Interface
org.apache.pulsar.client.api.MessagePayload
-
Packages that use MessagePayload Package Description org.apache.pulsar.client.api Pulsar Client API. -
-
Uses of MessagePayload in org.apache.pulsar.client.api
Methods in org.apache.pulsar.client.api that return MessagePayload Modifier and Type Method Description MessagePayloadMessagePayloadFactory. wrap(byte[] bytes)Create a payload whose underlying buffer refers to a byte array.MessagePayloadMessagePayloadFactory. wrap(java.nio.ByteBuffer buffer)Create a payload whose underlying buffer refers to a NIO buffer.Methods in org.apache.pulsar.client.api with parameters of type MessagePayload Modifier and Type Method Description <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> voidMessagePayloadProcessor. process(MessagePayload payload, MessagePayloadContext context, Schema<T> schema, java.util.function.Consumer<Message<T>> messageConsumer)Process the message payload.
-