Skip to content

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

Closed
@hezhangjian

Description

@hezhangjian

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions