Uses of Interface
org.apache.pulsar.client.api.MessageId
-
Packages that use MessageId Package Description org.apache.pulsar.client.api Pulsar Client API.org.apache.pulsar.client.api.interceptor Pulsar interceptors.org.apache.pulsar.client.internal Helpers which provide useful functionality for the implementation of Pulsar Client API. -
-
Uses of MessageId in org.apache.pulsar.client.api
Fields in org.apache.pulsar.client.api declared as MessageId Modifier and Type Field Description static MessageId
MessageId. earliest
MessageId that represents the oldest message available in the topic.static MessageId
MessageId. latest
MessageId that represents the next message published in the topic.Methods in org.apache.pulsar.client.api that return MessageId Modifier and Type Method Description static MessageId
MessageId. fromByteArray(byte[] data)
De-serialize a message id from a byte array.static MessageId
MessageId. fromByteArrayWithTopic(byte[] data, java.lang.String topicName)
De-serialize a message id from a byte array with its topic information attached.MessageId
Consumer. getLastMessageId()
Get the last message id available for consume.MessageId
Message. getMessageId()
Get the unique message ID associated with this message.MessageId
Producer. send(T message)
Sends a message.MessageId
TypedMessageBuilder. send()
Send a message synchronously.Methods in org.apache.pulsar.client.api that return types with arguments of type MessageId Modifier and Type Method Description java.util.concurrent.CompletableFuture<MessageId>
Consumer. getLastMessageIdAsync()
Get the last message id available for consume.java.util.concurrent.CompletableFuture<MessageId>
Producer. sendAsync(T message)
Send a message asynchronously.java.util.concurrent.CompletableFuture<MessageId>
TypedMessageBuilder. sendAsync()
Send a message asynchronouslyMethods in org.apache.pulsar.client.api with parameters of type MessageId Modifier and Type Method Description void
Consumer. acknowledge(MessageId messageId)
Acknowledge the consumption of a single message, identified by itsMessageId
.java.util.concurrent.CompletableFuture<java.lang.Void>
Consumer. acknowledgeAsync(MessageId messageId)
Asynchronously acknowledge the consumption of a single message.java.util.concurrent.CompletableFuture<java.lang.Void>
Consumer. acknowledgeAsync(MessageId messageId, Transaction txn)
Asynchronously acknowledge the consumption of a single message, it will store in pending ack.void
Consumer. acknowledgeCumulative(MessageId messageId)
Acknowledge the reception of all the messages in the stream up to (and including) the provided message.java.util.concurrent.CompletableFuture<java.lang.Void>
Consumer. acknowledgeCumulativeAsync(MessageId messageId)
Asynchronously Acknowledge the reception of all the messages in the stream up to (and including) the provided message.java.util.concurrent.CompletableFuture<java.lang.Void>
Consumer. acknowledgeCumulativeAsync(MessageId messageId, Transaction txn)
Acknowledge the reception of all the messages in the stream up to (and including) the provided message with this transaction, it will store in transaction pending ack.void
Consumer. negativeAcknowledge(MessageId messageId)
Acknowledge the failure to process a single message.void
ConsumerInterceptor. onAcknowledge(Consumer<T> consumer, MessageId messageId, java.lang.Throwable exception)
This is called consumer sends the acknowledgment to the broker.void
ConsumerInterceptor. onAcknowledgeCumulative(Consumer<T> consumer, MessageId messageId, java.lang.Throwable exception)
This is called consumer send the cumulative acknowledgment to the broker.void
ProducerInterceptor. onSendAcknowledgement(Producer<T> producer, Message<T> message, MessageId msgId, java.lang.Throwable exception)
Deprecated.This method is called when the message sent to the broker has been acknowledged, or when sending the message fails.void
Consumer. seek(MessageId messageId)
Reset the subscription associated with this consumer to a specific message id.void
Reader. seek(MessageId messageId)
Reset the subscription associated with this reader to a specific message id.java.util.concurrent.CompletableFuture<java.lang.Void>
Consumer. seekAsync(MessageId messageId)
Reset the subscription associated with this consumer to a specific message id.java.util.concurrent.CompletableFuture<java.lang.Void>
Reader. seekAsync(MessageId messageId)
Reset the subscription associated with this reader to a specific message id.ReaderBuilder<T>
ReaderBuilder. startMessageId(MessageId startMessageId)
The initial reader positioning is done by specifying a message id.Method parameters in org.apache.pulsar.client.api with type arguments of type MessageId Modifier and Type Method Description void
Consumer. acknowledge(java.util.List<MessageId> messageIdList)
Acknowledge the consumption of a list of message.java.util.concurrent.CompletableFuture<java.lang.Void>
Consumer. acknowledgeAsync(java.util.List<MessageId> messageIdList)
Asynchronously acknowledge the consumption of a list of message.void
ConsumerInterceptor. onAckTimeoutSend(Consumer<T> consumer, java.util.Set<MessageId> messageIds)
This method will be called when a redelivery from an acknowledge timeout occurs.void
ConsumerInterceptor. onNegativeAcksSend(Consumer<T> consumer, java.util.Set<MessageId> messageIds)
This method will be called when a redelivery from a negative acknowledge occurs. -
Uses of MessageId in org.apache.pulsar.client.api.interceptor
Methods in org.apache.pulsar.client.api.interceptor with parameters of type MessageId Modifier and Type Method Description void
ProducerInterceptor. onSendAcknowledgement(Producer producer, Message message, MessageId msgId, java.lang.Throwable exception)
This method is called when the message sent to the broker has been acknowledged, or when sending the message fails.void
ProducerInterceptorWrapper. onSendAcknowledgement(Producer producer, Message message, MessageId msgId, java.lang.Throwable exception)
-
Uses of MessageId in org.apache.pulsar.client.internal
Methods in org.apache.pulsar.client.internal that return MessageId Modifier and Type Method Description static MessageId
DefaultImplementation. newMessageId(long ledgerId, long entryId, int partitionIndex)
static MessageId
DefaultImplementation. newMessageIdFromByteArray(byte[] data)
static MessageId
DefaultImplementation. newMessageIdFromByteArrayWithTopic(byte[] data, java.lang.String topicName)
-