NameResolver.Args
instead.@Deprecated @ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1770") public abstract static class NameResolver.Helper extends Object
NameResolver.Factory.newNameResolver(URI, NameResolver.Helper)
.Constructor and Description |
---|
Helper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
getDefaultPort()
Deprecated.
The port number used in case the target or the underlying naming system doesn't provide a
port number.
|
abstract ProxyDetector |
getProxyDetector()
Deprecated.
If the NameResolver wants to support proxy, it should inquire this
ProxyDetector . |
SynchronizationContext |
getSynchronizationContext()
Deprecated.
Returns the
SynchronizationContext where NameResolver.start(Listener2) , NameResolver.shutdown()
and NameResolver.refresh() are run from. |
NameResolver.ConfigOrError |
parseServiceConfig(Map<String,?> rawServiceConfig)
Deprecated.
Parses and validates the service configuration chosen by the name resolver.
|
public abstract int getDefaultPort()
public abstract ProxyDetector getProxyDetector()
ProxyDetector
.
See documentation on ProxyDetector
about how proxies work in gRPC.public SynchronizationContext getSynchronizationContext()
SynchronizationContext
where NameResolver.start(Listener2)
, NameResolver.shutdown()
and NameResolver.refresh()
are run from.public 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