@ThreadSafe public static interface NameResolver.Listener
All methods are expected to return quickly.
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Status error)
Handles an error from the resolver.
|
void |
onUpdate(List<ResolvedServerInfo> servers,
Attributes config)
Handles updates on resolved addresses and config.
|
void onUpdate(List<ResolvedServerInfo> servers, Attributes config)
Implementations will not modify the given servers.
servers - the resolved server addresses. An empty list will trigger onError(io.grpc.Status)config - extra configuration data from naming systemvoid onError(Status error)
error - a non-OK status