Package io.grpc

Class NameResolver.Helper

    • Constructor Detail

      • Helper

        public Helper()
        Deprecated.
    • 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 this ProxyDetector. See documentation on ProxyDetector about how proxies work in gRPC.
        Since:
        1.19.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 a 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().
        Parameters:
        rawServiceConfig - The Map representation of the service config
        Returns:
        a tuple of the fully parsed and validated channel configuration, else the Status.
        Since:
        1.20.0