Class SpringAwareManagedChannelBuilder
java.lang.Object
org.springframework.cloud.sleuth.brave.instrument.grpc.SpringAwareManagedChannelBuilder
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
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.ManagedChannelBuilder<?>forAddress(String name, int port) io.grpc.ManagedChannelBuilder<?>io.grpc.ManagedChannelBuilder<?>inProcessChannelBuilder(String serverName)
-
Constructor Details
-
SpringAwareManagedChannelBuilder
public SpringAwareManagedChannelBuilder(Optional<List<GrpcManagedChannelBuilderCustomizer>> customizers)
-
-
Method Details
-
forAddress
-
forTarget
-
inProcessChannelBuilder
-