horizonzy commented on issue #16358: URL: https://github.com/apache/pulsar/issues/16358#issuecomment-1174622951
> What are the scenarios for consumers to use `hasMessageAvailable`? Sorry for delay reply. Not the method hasMessageAvailable is defined in both ConsumerImpl and MultiConsumerImpl. https://github.com/apache/pulsar/blob/aabd5d020543210921f10648caf6720adc41d651/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java#L2188 https://github.com/apache/pulsar/blob/aabd5d020543210921f10648caf6720adc41d651/pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java#L811 The behavior is same. So I think the method should upper to parent file `BaseConsumer` or `Consumer`. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
