-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…1867) Motivation: The methods in `GrpcClientBuilder` are often only delegating to the underlying HTTP transport builder. It will be beneficial if the API can be simplified and have only gRPC specific settings. The first step is to deprecate the methods which can be called directly on the underlying `SingleAddressHttpClientBuilder` and to introduce a method for configuring that builder. Modifications: - Introduce a `GrpcClientBuilder.HttpInitializer` interface and a corresponding `GrpcClientBuilder#initializeHttp` method which accepts the initializer for the underlying `SingleAddressHttpClientBuilder` instance, - Deprecate methods which have only served the purpose of delegating to the underlying HTTP transport builder, - Made builder reusable and added implementations for deprecated methods, - Refactor tests to use the new approach to showcase it works. Result: The API of `GrpcClientBuilder` is prepared for removal of the deprecated methods in 0.42 release and the API is more specific, while maintaining the same level of configurability.
- Loading branch information
Dariusz Jedrzejczyk
authored
Oct 11, 2021
1 parent
212aa6b
commit 3c9bd5c
Showing
17 changed files
with
387 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
283 changes: 223 additions & 60 deletions
283
servicetalk-grpc-api/src/main/java/io/servicetalk/grpc/api/GrpcClientBuilder.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.