Class ScParser

    • Field Detail

      • retryEnabled

        private final boolean retryEnabled
      • maxRetryAttemptsLimit

        private final int maxRetryAttemptsLimit
      • maxHedgedAttemptsLimit

        private final int maxHedgedAttemptsLimit
    • Constructor Detail

      • ScParser

        public ScParser​(boolean retryEnabled,
                        int maxRetryAttemptsLimit,
                        int maxHedgedAttemptsLimit,
                        AutoConfiguredLoadBalancerFactory autoLoadBalancerFactory)
        Creates a parse with global retry settings and an auto configured lb factory.
    • Method Detail

      • parseServiceConfig

        public NameResolver.ConfigOrError parseServiceConfig​(java.util.Map<java.lang.String,​?> rawServiceConfig)
        Description copied from class: NameResolver.ServiceConfigParser
        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().
        Specified by:
        parseServiceConfig in class NameResolver.ServiceConfigParser
        Parameters:
        rawServiceConfig - The Map representation of the service config
        Returns:
        a tuple of the fully parsed and validated channel configuration, else the Status.