public class DiscoveryClientResolverFactory
extends io.grpc.NameResolverProvider
Constructor and Description |
---|
DiscoveryClientResolverFactory(org.springframework.cloud.client.discovery.DiscoveryClient client,
DiscoveryClientChannelFactory discoveryClientChannelFactory) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultScheme() |
protected boolean |
isAvailable() |
io.grpc.NameResolver |
newNameResolver(java.net.URI targetUri,
io.grpc.Attributes params) |
protected int |
priority() |
public DiscoveryClientResolverFactory(org.springframework.cloud.client.discovery.DiscoveryClient client, DiscoveryClientChannelFactory discoveryClientChannelFactory)
@Nullable public io.grpc.NameResolver newNameResolver(java.net.URI targetUri, io.grpc.Attributes params)
newNameResolver
in class io.grpc.NameResolver.Factory
public java.lang.String getDefaultScheme()
getDefaultScheme
in class io.grpc.NameResolver.Factory
protected boolean isAvailable()
isAvailable
in class io.grpc.NameResolverProvider
protected int priority()
priority
in class io.grpc.NameResolverProvider