Class SpringAwareManagedChannelBuilder
- java.lang.Object
-
- org.springframework.cloud.sleuth.brave.instrument.grpc.SpringAwareManagedChannelBuilder
-
public class SpringAwareManagedChannelBuilder extends Object
This is a Spring-aware managed channel builder that wraps the static entry points of gRPC's ManagedChannelBuilder to allow the configuration of the builder to be influenced by the Spring Context. All GrpcManagedChannelBuilderCustomizer instances included in the application context will have the opportunity to customize the builder. NOTE: There is nothing "Sleuth-specific" about this, however, there is currently not a good spring abstraction for client-side gRPC. Ideally, this could be moved up into grpc-spring-boot-starter or a new project could be created "spring-grpc"/"spring-cloud-grpc"?- Since:
- 3.0.0
- Author:
- Tyler Van Gorder
-
-
Constructor Summary
Constructors Constructor Description SpringAwareManagedChannelBuilder(Optional<List<GrpcManagedChannelBuilderCustomizer>> customizers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.ManagedChannelBuilder<?>forAddress(String name, int port)io.grpc.ManagedChannelBuilder<?>forTarget(String target)io.grpc.ManagedChannelBuilder<?>inProcessChannelBuilder(String serverName)
-
-
-
Constructor Detail
-
SpringAwareManagedChannelBuilder
public SpringAwareManagedChannelBuilder(Optional<List<GrpcManagedChannelBuilderCustomizer>> customizers)
-
-