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

New undocumented constructor for Consumer #179

Open
alexandernajafi opened this issue Jan 18, 2022 · 1 comment
Open

New undocumented constructor for Consumer #179

alexandernajafi opened this issue Jan 18, 2022 · 1 comment

Comments

@alexandernajafi
Copy link

The KafkaConsumerBundle does not have any empty constructor, but one that takes a Collection<String> topics and a ConsumerRebalanceListener.

It does not seem like the topics actually does anything as I still, manually have to call subscribe / unsubscribe in my consumer. Is this correct?

Also, could someone please provide some documentation on what to implement in the ConsumerRebalanceListener. It has two methods, but is it OK to leave them empty? Do I have to do some manual commit of offsets here?

new ConsumerRebalanceListener() {
              @Override
              public void onPartitionsRevoked(final Collection<TopicPartition> collection) {
                // Intentionally empty
              }

              @Override
              public void onPartitionsAssigned(final Collection<TopicPartition> collection) {
                // Intentionally empty
              }
            }
@love1491
Copy link

love1491 commented Jul 7, 2022

Same here, anyone could help? Or should I move to Springboot?

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

No branches or pull requests

2 participants