-
Notifications
You must be signed in to change notification settings - Fork 106
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
Refactor KafkaConsumerProcessor
#871
Conversation
9c1fba7
to
6d2bf10
Compare
6d2bf10
to
815780e
Compare
1188b37
to
a03c37e
Compare
kafka/src/main/java/io/micronaut/configuration/kafka/annotation/ErrorStrategyValue.java
Show resolved
Hide resolved
kafka/src/main/java/io/micronaut/configuration/kafka/annotation/ErrorStrategyValue.java
Outdated
Show resolved
Hide resolved
kafka/src/main/java/io/micronaut/configuration/kafka/processor/ConsumerCloseState.java
Show resolved
Hide resolved
kafka/src/main/java/io/micronaut/configuration/kafka/processor/ConsumerSeekAwareAdapter.java
Outdated
Show resolved
Hide resolved
kafka/src/main/java/io/micronaut/configuration/kafka/processor/ConsumerSeekAwareAdapter.java
Outdated
Show resolved
Hide resolved
kafka/src/main/java/io/micronaut/configuration/kafka/processor/ConsumerState.java
Show resolved
Hide resolved
|
||
private static final Logger LOG = LoggerFactory.getLogger(KafkaConsumerProcessor.class); // NOSONAR | ||
|
||
final ConsumerInfo info; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's package-protected on purpose. Please note that ConsumerState
itself is an @Internal
, package-protected class.
final ConsumerInfo info; | ||
final Consumer<?, ?> kafkaConsumer; | ||
final Set<String> subscriptions; | ||
Set<TopicPartition> assignments; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Package-protected on purpose.
kafka/src/main/java/io/micronaut/configuration/kafka/processor/ConsumerState.java
Show resolved
Hide resolved
kafka/src/main/java/io/micronaut/configuration/kafka/processor/ConsumerInfo.java
Show resolved
Hide resolved
This reverts commit a583708.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like all of the new classes are missing @author
and @since
JavaDoc tags.
Disclaimer: some of these classes already existed, but didn't have any authorship / version info available.
8b89349
to
447b8da
Compare
Kudos, SonarCloud Quality Gate passed! |
I extracted some internal classes out of
KafkaConsumerProcessor
and split some methods into smaller ones.