apache/pulsar-dotpulsar

Support HasMessageAvailable

smbecker opened this issue · 0 comments

Is your feature request related to a problem? Please describe

Given that Receive will block until a message is available or until a timeout occurs, it is pretty typical to want to check if a message is available before calling Receive. This is something already supported by the Java API.

Describe the solution you'd like and alternatives you've considered

Provide an implementation of HasMessageAvailable that will determine if a message can be immediately received or not.