Class ManagedChannelServiceConfig
java.lang.Object
io.grpc.internal.ManagedChannelServiceConfig
ManagedChannelServiceConfig is a fully parsed and validated representation of service
configuration data.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classEquivalent of MethodConfig from a ServiceConfig with restrictions from Channel setting.(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ManagedChannelServiceConfig.MethodInfoprivate final Objectprivate final RetriableStream.Throttleprivate final Map<String, ManagedChannelServiceConfig.MethodInfo> private final Map<String, ManagedChannelServiceConfig.MethodInfo> -
Constructor Summary
ConstructorsConstructorDescriptionManagedChannelServiceConfig(ManagedChannelServiceConfig.MethodInfo defaultMethodConfig, Map<String, ManagedChannelServiceConfig.MethodInfo> serviceMethodMap, Map<String, ManagedChannelServiceConfig.MethodInfo> serviceMap, RetriableStream.Throttle retryThrottling, Object loadBalancingConfig, Map<String, ?> healthCheckingConfig) -
Method Summary
Modifier and TypeMethodDescription(package private) static ManagedChannelServiceConfigempty()Returns an emptyManagedChannelServiceConfig.boolean(package private) static ManagedChannelServiceConfigfromServiceConfig(Map<String, ?> serviceConfig, boolean retryEnabled, int maxRetryAttemptsLimit, int maxHedgedAttemptsLimit, Object loadBalancingConfig) Parses the Channel level config values (e.g.(package private) InternalConfigSelectorUsed as a fallback per-RPC config supplier when the attributes value ofInternalConfigSelector.KEYis not available.(package private) Object(package private) ManagedChannelServiceConfig.MethodInfogetMethodConfig(MethodDescriptor<?, ?> method) (package private) RetriableStream.ThrottleinthashCode()toString()
-
Field Details
-
defaultMethodConfig
-
serviceMethodMap
-
serviceMap
-
retryThrottling
-
loadBalancingConfig
-
healthCheckingConfig
-
-
Constructor Details
-
ManagedChannelServiceConfig
ManagedChannelServiceConfig(@Nullable ManagedChannelServiceConfig.MethodInfo defaultMethodConfig, Map<String, ManagedChannelServiceConfig.MethodInfo> serviceMethodMap, Map<String, ManagedChannelServiceConfig.MethodInfo> serviceMap, @Nullable RetriableStream.Throttle retryThrottling, @Nullable Object loadBalancingConfig, @Nullable Map<String, ?> healthCheckingConfig)
-
-
Method Details
-
empty
Returns an emptyManagedChannelServiceConfig. -
fromServiceConfig
static ManagedChannelServiceConfig fromServiceConfig(Map<String, ?> serviceConfig, boolean retryEnabled, int maxRetryAttemptsLimit, int maxHedgedAttemptsLimit, @Nullable Object loadBalancingConfig) Parses the Channel level config values (e.g. excludes load balancing) -
getHealthCheckingConfig
-
getDefaultConfigSelector
Used as a fallback per-RPC config supplier when the attributes value ofInternalConfigSelector.KEYis not available. Returnsnullif there is no method config in this service config. -
getLoadBalancingConfig
-
getRetryThrottling
-
getMethodConfig
-
equals
-
hashCode
-
toString
-