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