public class StaticNameResolver
extends io.grpc.NameResolver
NameResolver
that will always respond with a static set of target addresses.Constructor and Description |
---|
StaticNameResolver(java.lang.String authority,
java.util.Collection<io.grpc.EquivalentAddressGroup> targets) |
StaticNameResolver(java.lang.String authority,
io.grpc.EquivalentAddressGroup target) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getServiceAuthority() |
void |
refresh() |
void |
shutdown() |
void |
start(io.grpc.NameResolver.Listener listener) |
java.lang.String |
toString() |
public StaticNameResolver(java.lang.String authority, io.grpc.EquivalentAddressGroup target)
public StaticNameResolver(java.lang.String authority, java.util.Collection<io.grpc.EquivalentAddressGroup> targets)
public java.lang.String getServiceAuthority()
getServiceAuthority
in class io.grpc.NameResolver
public void start(io.grpc.NameResolver.Listener listener)
start
in class io.grpc.NameResolver
public void refresh()
refresh
in class io.grpc.NameResolver
public void shutdown()
shutdown
in class io.grpc.NameResolver
public java.lang.String toString()
toString
in class java.lang.Object