Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIP 124: Add method to help user judge if consumer queue has message #12479

Closed
shoothzj opened this issue Oct 25, 2021 · 1 comment
Closed

PIP 124: Add method to help user judge if consumer queue has message #12479

shoothzj opened this issue Oct 25, 2021 · 1 comment

Comments

@shoothzj
Copy link
Member

Motivation

Currently, I have an application that manages ten thousand of consumers, and a logic to schedule consumers's receive. It would be helpful to know if one of the consumers have message to recive.

Goal

To make Consumer can judge if there are unreceiving messages

API Changes

Add hasMessageInReceiverQueue on the Consumer interface.

Implementation

For ZeroQueueConsumerImpl return false, Others, judge the receiveQueueSize greater than zero.

Reject Alternatives

No alternatives yet.

@shoothzj shoothzj changed the title PIP 108: Add method to help user judge if consumer queue has message PIP 123: Add method to help user judge if consumer queue has message Dec 23, 2021
@shoothzj shoothzj changed the title PIP 123: Add method to help user judge if consumer queue has message PIP 124: Add method to help user judge if consumer queue has message Dec 23, 2021
@github-actions
Copy link

The issue had no activity for 30 days, mark with Stale label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant