Skip to content

Commit

Permalink
Revert "Deprecated GrpcClientBuilder#MultiClientBuilder" (#2128)
Browse files Browse the repository at this point in the history
This reverts commit 380c2ad.

`GrpcClientBuilder#MultiClientBuilder` is a clean way to reuse the underlying transport between different service clients and at the moment there is no practical alternative to replace it without the risk of losing the default filters.
  • Loading branch information
Dariusz Jedrzejczyk authored Mar 7, 2022
1 parent 805a73e commit ec0aa39
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,12 +491,9 @@ public final GrpcClientBuilder<U, R> appendHttpClientFilter(Predicate<StreamingH
* instance.
*
* @return A blocking <a href="https://www.grpc.io">gRPC</a> client.
* @deprecated Use {@link GrpcClientFactory#newClient(GrpcClientCallFactory)}
* or {@link GrpcClientFactory#newBlockingClient(GrpcClientCallFactory)}
* and provide a custom {@link GrpcClientCallFactory} instead.
*/
@Deprecated
public final MultiClientBuilder buildMulti() {

GrpcClientCallFactory callFactory = newGrpcClientCallFactory();
return new MultiClientBuilder() {
@Override
Expand Down Expand Up @@ -583,11 +580,7 @@ protected void doAppendHttpClientFilter(Predicate<StreamingHttpRequest> predicat
/**
* An interface to create multiple <a href="https://www.grpc.io">gRPC</a> clients sharing the
* same underlying transport instance.
* @deprecated Use {@link GrpcClientFactory#newClient(GrpcClientCallFactory)}
* or {@link GrpcClientFactory#newBlockingClient(GrpcClientCallFactory)}
* and provide a custom {@link GrpcClientCallFactory} instead.
*/
@Deprecated
public interface MultiClientBuilder {

/**
Expand Down

0 comments on commit ec0aa39

Please sign in to comment.