nha opened a new issue #8547: URL: https://github.com/apache/pulsar/issues/8547
**Is your enhancement request related to a problem? Please describe.** In the pulsar java client, allow registering a listener for the `endOfTopic` event that can be used when calling `.receive`-style calls without having to use a `messageListener`. From https://pulsar.apache.org/api/client/org/apache/pulsar/client/api/ConsumerBuilder.html#messageListener-org.apache.pulsar.client.api.MessageListener- (emphasis mine) > When a MessageListener is set, application will receive messages through it. > **Calls to Consumer.receive() will not be allowed.** **Describe the solution you'd like** Setting another listener only for `endOfTopic` events in the `ConsumerBuilder` **Describe alternatives you've considered** I cannot think of an alternative. **Additional context** https://github.com/apache/pulsar/blob/db6afd52841108b0c35f0a0bdd0759f5243d93e0/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBase.java#L141-L144 ---------------------------------------------------------------- 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]
