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

Add the Consumer::getConsumerName API #360

Merged

Conversation

BewareMyPower
Copy link
Contributor

Motivation

C++ client supports setting the consumer name via
ConsumerConfiguration::setConsumerName but it does not support getting the consumer name for a given consumer.

Modifications

Add the getConsumerName method to ConsumerImplBase to get the consumer name from the config and a public method with the same name to Consumer.

Add ConsumerTest.testConsumerName to verify the consumer name is set correctly in the subscribe command.

### Motivation

C++ client supports setting the consumer name via
`ConsumerConfiguration::setConsumerName` but it does not support getting
the consumer name for a given consumer.

### Modifications

Add the `getConsumerName` method to `ConsumerImplBase` to get the
consumer name from the config and a public method with the same name to
`Consumer`.

Add `ConsumerTest.testConsumerName` to verify the consumer name is set
correctly in the subscribe command.
@BewareMyPower BewareMyPower added the enhancement New feature or request label Dec 3, 2023
@BewareMyPower BewareMyPower added this to the 3.5.0 milestone Dec 3, 2023
@BewareMyPower BewareMyPower self-assigned this Dec 3, 2023
@BewareMyPower BewareMyPower merged commit 63d494f into apache:main Dec 4, 2023
14 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/consumer-get-name branch December 4, 2023 02:25
BewareMyPower added a commit to BewareMyPower/pulsar-client-python that referenced this pull request Mar 22, 2024
BewareMyPower added a commit to apache/pulsar-client-python that referenced this pull request Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants