@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<? extends List<ResolvedServerInfo>> servers,
Attributes config)
Handles updates on resolved addresses and config.
|
void onUpdate(List<? extends List<ResolvedServerInfo>> servers, Attributes config)
Implementations will not modify the given servers.
servers - the resolved server addresses. Sublists should be considered to be
an EquivalentAddressGroup. An empty list or all sublists being empty
will trigger onError(io.grpc.Status)config - extra configuration data from naming systemvoid onError(Status error)
error - a non-OK status