public class DiscoveryClientResolverFactory
extends io.grpc.NameResolverProvider
DiscoveryClientNameResolver based on the target uri.| 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.Factorypublic java.lang.String getDefaultScheme()
getDefaultScheme in class io.grpc.NameResolver.Factoryprotected boolean isAvailable()
isAvailable in class io.grpc.NameResolverProviderprotected int priority()
priority in class io.grpc.NameResolverProvider