@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1770") public abstract static class NameResolver.ServiceConfigParser extends Object
Constructor and Description |
---|
ServiceConfigParser() |
Modifier and Type | Method and Description |
---|---|
abstract NameResolver.ConfigOrError |
parseServiceConfig(Map<String,?> rawServiceConfig)
Parses and validates the service configuration chosen by the name resolver.
|
public abstract NameResolver.ConfigOrError parseServiceConfig(Map<String,?> rawServiceConfig)
NameResolver.ConfigOrError
which contains either the successfully parsed config, or the
Status
representing the failure to parse. Implementations are expected to not throw
exceptions but return a Status representing the failure. The value inside the
NameResolver.ConfigOrError
should implement equals()
and hashCode()
.rawServiceConfig
- The Map
representation of the service config