@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 |
onUpdate(List<ResolvedServerInfoGroup> servers,
Attributes attributes)
Deprecated.
|
@Deprecated void onUpdate(List<ResolvedServerInfoGroup> servers, Attributes attributes)
onAddresses(java.util.List<io.grpc.EquivalentAddressGroup>, io.grpc.Attributes)
insteadImplementations will not modify the given servers
.
servers
- the resolved server groups, containing ResolvedServerInfo
objects. An
empty list will trigger onError(io.grpc.Status)
attributes
- extra metadata from naming systemvoid 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