-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][client] Document Java Client's Seek logic thread-safety improved in #20242 #20284
Conversation
@@ -523,11 +523,15 @@ CompletableFuture<Void> reconsumeLaterCumulativeAsync(Message<?> message, | |||
|
|||
/** | |||
* The asynchronous version of {@link Consumer#seek(MessageId)}. | |||
* <p> | |||
* If there is already a seek operation in progress, the method will log a warning and return a canceled future. |
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.
* If there is already a seek operation in progress, the method will log a warning and return a canceled future. | |
* If there is already a seek operation in progress, the method will log a warning and return a future completed exceptionally. |
See #20321
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.
Oh okay, will do 👍🏻👍🏻
*/ | ||
CompletableFuture<Void> seekAsync(MessageId messageId); | ||
|
||
/** | ||
* Reset the subscription associated with this consumer to a specific message publish time. | ||
* <p> | ||
* If there is already a seek operation in progress, the method will log a warning and return a canceled future. |
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.
* If there is already a seek operation in progress, the method will log a warning and return a canceled future. | |
* If there is already a seek operation in progress, the method will log a warning and return a future completed exceptionally. |
pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Consumer.java
Outdated
Show resolved
Hide resolved
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.
LGTM, thanks @JooHyukKim
Please fix only the reported style violations. You can check locally by running:
|
My apologies 🙏🏼 Will do now and re-request review shortly, @tisonkun. |
Codecov Report
@@ Coverage Diff @@
## master #20284 +/- ##
=============================================
+ Coverage 37.61% 72.91% +35.30%
- Complexity 12589 31951 +19362
=============================================
Files 1691 1868 +177
Lines 129028 138663 +9635
Branches 14066 15248 +1182
=============================================
+ Hits 48530 101112 +52582
+ Misses 74183 29484 -44699
- Partials 6315 8067 +1752
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Master Issue: #19671
Motivation
Improves JavaDoc describing changes made by PR #20242 as suggested by in review
EDIT: modified JavaDoc to also cover #20321 accordingly
Modifications
Add JavaDoc regarding thready-safety to the methods in scope of #20242
Verifying this change
This change is a trivial rework only adds JavaDoc
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: https://github.com/JooHyukKim/pulsar/pull/2