Hi,

I want to know if it is possible to convert a MessageId to numerical
Offset, since in my implementation I want to get and calculate a range
between 2 different MessageIds. I saw that there is a MessageIdUtils
<https://github.com/apache/pulsar/blob/master/pulsar-client/src/main/java/org/apache/pulsar/client/util/MessageIdUtils.java>
which has a function to convert a MessageId to Offset, could I use that
function so I can get an expected offset? (e.g. I got MessageId_1 and using
the function got something like offset = 8273613251, and then applying
*offset +
1,* I can get an expected offset like 8273613252, so when I receive the
next MessageId converting it to offset will give me that expected offset).

Thanks in advance.

-- 

*Marco Robles* *|* WIZELINE

Software Engineer

marco.rob...@wizeline.com

Amado Nervo 2200, Esfera P6, Col. Ciudad del Sol, 45050 Zapopan, Jal.

-- 
*This email and its contents (including any attachments) are being sent to
you on the condition of confidentiality and may be protected by legal
privilege. Access to this email by anyone other than the intended recipient
is unauthorized. If you are not the intended recipient, please immediately
notify the sender by replying to this message and delete the material
immediately from your system. Any further use, dissemination, distribution
or reproduction of this email is strictly prohibited. Further, no
representation is made with respect to any content contained in this email.*

Reply via email to