We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
//已经close closeConsumer(oldConsumerHolder);
ConsumerHolder newConsumerHolder = getOrAddConsumer(topicId); if (oldConsumerHolder.getAssignments() != null) { newConsumerHolder.setAssignments(oldConsumerHolder.getAssignments());
// oldCOnsumerHolder.getConsumer() 没必须要assign了吧,作者,这里是笔误? 有点没太明白 oldConsumerHolder.getConsumer().assign(oldConsumerHolder.getAssignments()); } else if (oldConsumerHolder.getConsumerRebalanceListener() != null) { newConsumerHolder.setConsumerRebalanceListener(oldConsumerHolder.getConsumerRebalanceListener()); newConsumerHolder.getConsumer().subscribe(Arrays.asList(topicId), oldConsumerHolder.getConsumerRebalanceListener()); } else { newConsumerHolder.getConsumer().subscribe(Arrays.asList(topicId)); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
//已经close
closeConsumer(oldConsumerHolder);
// oldCOnsumerHolder.getConsumer() 没必须要assign了吧,作者,这里是笔误? 有点没太明白
oldConsumerHolder.getConsumer().assign(oldConsumerHolder.getAssignments());
} else if (oldConsumerHolder.getConsumerRebalanceListener() != null) {
newConsumerHolder.setConsumerRebalanceListener(oldConsumerHolder.getConsumerRebalanceListener());
newConsumerHolder.getConsumer().subscribe(Arrays.asList(topicId),
oldConsumerHolder.getConsumerRebalanceListener());
} else {
newConsumerHolder.getConsumer().subscribe(Arrays.asList(topicId));
}
The text was updated successfully, but these errors were encountered: