Package io.grpc
Class NameResolver.Helper
- java.lang.Object
-
- io.grpc.NameResolver.Helper
-
- Enclosing class:
- NameResolver
@Deprecated @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1770") public abstract static class NameResolver.Helper extends java.lang.Object
Deprecated.useNameResolver.Argsinstead.A utility object passed toNameResolver.Factory.newNameResolver(URI, NameResolver.Helper).- Since:
- 1.19.0
-
-
Constructor Summary
Constructors Constructor Description Helper()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract intgetDefaultPort()Deprecated.The port number used in case the target or the underlying naming system doesn't provide a port number.abstract ProxyDetectorgetProxyDetector()Deprecated.If the NameResolver wants to support proxy, it should inquire thisProxyDetector.SynchronizationContextgetSynchronizationContext()Deprecated.Returns theSynchronizationContextwhereNameResolver.start(Listener2),NameResolver.shutdown()andNameResolver.refresh()are run from.NameResolver.ConfigOrErrorparseServiceConfig(java.util.Map<java.lang.String,?> rawServiceConfig)Deprecated.Parses and validates the service configuration chosen by the name resolver.
-
-
-
Method Detail
-
getDefaultPort
public abstract int getDefaultPort()
Deprecated.The port number used in case the target or the underlying naming system doesn't provide a port number.- Since:
- 1.19.0
-
getProxyDetector
public abstract ProxyDetector getProxyDetector()
Deprecated.If the NameResolver wants to support proxy, it should inquire thisProxyDetector. See documentation onProxyDetectorabout how proxies work in gRPC.- Since:
- 1.19.0
-
getSynchronizationContext
public SynchronizationContext getSynchronizationContext()
Deprecated.Returns theSynchronizationContextwhereNameResolver.start(Listener2),NameResolver.shutdown()andNameResolver.refresh()are run from.- Since:
- 1.20.0
-
parseServiceConfig
public NameResolver.ConfigOrError parseServiceConfig(java.util.Map<java.lang.String,?> rawServiceConfig)
Deprecated.Parses and validates the service configuration chosen by the name resolver. This will return aNameResolver.ConfigOrErrorwhich contains either the successfully parsed config, or theStatusrepresenting the failure to parse. Implementations are expected to not throw exceptions but return a Status representing the failure. The value inside theNameResolver.ConfigOrErrorshould implementequals()andhashCode().- Parameters:
rawServiceConfig- TheMaprepresentation of the service config- Returns:
- a tuple of the fully parsed and validated channel configuration, else the Status.
- Since:
- 1.20.0
-
-