public static final class NameResolver.Helper.ConfigOrError extends Object
Modifier and Type | Field and Description |
---|---|
static NameResolver.Helper.ConfigOrError |
UNKNOWN_CONFIG
A sentinel value indicating that service config is not supported.
|
Modifier and Type | Method and Description |
---|---|
static NameResolver.Helper.ConfigOrError |
fromConfig(Object config)
Returns a
NameResolver.Helper.ConfigOrError for the successfully parsed config. |
static NameResolver.Helper.ConfigOrError |
fromError(Status status)
Returns a
NameResolver.Helper.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.
|
String |
toString() |
public static final NameResolver.Helper.ConfigOrError UNKNOWN_CONFIG
public static NameResolver.Helper.ConfigOrError fromConfig(Object config)
NameResolver.Helper.ConfigOrError
for the successfully parsed config.public static NameResolver.Helper.ConfigOrError fromError(Status status)
NameResolver.Helper.ConfigOrError
for the failure to parse the config.status
- a non-OK statusCopyright © 2019. All rights reserved.