@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1770") public static final class NameResolver.ConfigOrError extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static NameResolver.ConfigOrError |
fromConfig(Object config)
Returns a
NameResolver.ConfigOrError for the successfully parsed config. |
static NameResolver.ConfigOrError |
fromError(Status status)
Returns a
NameResolver.ConfigOrError for the failure to parse the config. |
Object |
getConfig()
Returns config if exists, otherwise null.
|
Status |
getError()
Returns error status if exists, otherwise null.
|
int |
hashCode() |
String |
toString() |
public static NameResolver.ConfigOrError fromConfig(Object config)
NameResolver.ConfigOrError
for the successfully parsed config.public static NameResolver.ConfigOrError fromError(Status status)
NameResolver.ConfigOrError
for the failure to parse the config.status
- a non-OK status