maimom1924 commented on issue #9330:
URL: https://github.com/apache/pulsar/issues/9330#issuecomment-770381508
Dear sir/madam,
Thank you so much for your help and support. I tried to test with version
2.5.1 but when there is no message on the topic and I call the
reader.hasMessageAvailable(), I got true value. Could you please help
check on this?
Regards,
Mai Mom
Reader<byte[]> reader = pulsarClient.newReader()
.topic(config.getStateTopic())
.startMessageId(MessageId.latest)
.startMessageIdInclusive()
.create();
boolean hasMessage = reader.hasMessageAvailable();
On Sat, Jan 30, 2021 at 11:54 PM lipenghui <[email protected]> wrote:
> Closed #9330 <https://github.com/apache/pulsar/issues/9330>.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/pulsar/issues/9330#event-4269208002>, or
> unsubscribe
>
<https://github.com/notifications/unsubscribe-auth/ASTNJLOEGTY7JAP2HBQEQ23S4QMTHANCNFSM4WT4NA2A>
> .
>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]