public class DiscoveryClientNameResolver
extends io.grpc.NameResolver
Constructor and Description |
---|
DiscoveryClientNameResolver(java.lang.String name,
org.springframework.cloud.client.discovery.DiscoveryClient client,
io.grpc.Attributes attributes,
io.grpc.internal.SharedResourceHolder.Resource<java.util.concurrent.ScheduledExecutorService> timerServiceResource,
io.grpc.internal.SharedResourceHolder.Resource<java.util.concurrent.ExecutorService> executorResource) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getServiceAuthority() |
void |
refresh() |
void |
shutdown() |
void |
start(io.grpc.NameResolver.Listener listener) |
public DiscoveryClientNameResolver(java.lang.String name, org.springframework.cloud.client.discovery.DiscoveryClient client, io.grpc.Attributes attributes, io.grpc.internal.SharedResourceHolder.Resource<java.util.concurrent.ScheduledExecutorService> timerServiceResource, io.grpc.internal.SharedResourceHolder.Resource<java.util.concurrent.ExecutorService> executorResource)
public final java.lang.String getServiceAuthority()
getServiceAuthority
in class io.grpc.NameResolver
public final void start(io.grpc.NameResolver.Listener listener)
start
in class io.grpc.NameResolver
public final void refresh()
refresh
in class io.grpc.NameResolver
public void shutdown()
shutdown
in class io.grpc.NameResolver