-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Introduced CompletableResponseListener #10502
Introduced CompletableResponseListener #10502
Conversation
…nseListener that uses better APIs based on CompletableFuture. Deprecated FutureResponseListener and replaced its usages. Updated documentation. Added tests for zipped request content. Signed-off-by: Simone Bordet <[email protected]>
Signed-off-by: Simone Bordet <[email protected]>
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.
Mostly OK, just a couple of javadoc suggestions
* <p>A {@link BufferingResponseListener} that takes care of sending | ||
* the request, returning a {@link CompletableFuture} that is completed |
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.
* <p>A {@link BufferingResponseListener} that takes care of sending | |
* the request, returning a {@link CompletableFuture} that is completed | |
* <p>A {@link BufferingResponseListener} that sends a | |
* {@link Request} and returns a {@link CompletableFuture} that is completed |
/** | ||
* <p>A {@link BufferingResponseListener} that takes care of sending | ||
* the request, returning a {@link CompletableFuture} that is completed | ||
* when the request/response is completed.</p> |
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.
* when the request/response is completed.</p> | |
* when the {@link #onComplete(Result)} event method is called.</p> |
Signed-off-by: Simone Bordet <[email protected]>
CompletableResponseListener replaces FutureResponseListener, using better APIs based on CompletableFuture.
Deprecated FutureResponseListener and replaced its usages.
Updated documentation.
Added tests for zipped request content.