public class DiscoveryClientChannelFactory extends java.lang.Object implements GrpcChannelFactory
Constructor and Description |
---|
DiscoveryClientChannelFactory(GrpcChannelsProperties properties,
org.springframework.cloud.client.discovery.DiscoveryClient client,
io.grpc.LoadBalancer.Factory loadBalancerFactory,
GlobalClientInterceptorRegistry globalClientInterceptorRegistry) |
Modifier and Type | Method and Description |
---|---|
io.grpc.Channel |
createChannel(java.lang.String name) |
io.grpc.Channel |
createChannel(java.lang.String name,
java.util.List<io.grpc.ClientInterceptor> interceptors) |
public DiscoveryClientChannelFactory(GrpcChannelsProperties properties, org.springframework.cloud.client.discovery.DiscoveryClient client, io.grpc.LoadBalancer.Factory loadBalancerFactory, GlobalClientInterceptorRegistry globalClientInterceptorRegistry)
public io.grpc.Channel createChannel(java.lang.String name)
createChannel
in interface GrpcChannelFactory
public io.grpc.Channel createChannel(java.lang.String name, java.util.List<io.grpc.ClientInterceptor> interceptors)
createChannel
in interface GrpcChannelFactory