Package io.grpc.internal
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 class
Equivalent of MethodConfig from a ServiceConfig with restrictions from Channel setting.(package private) static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ManagedChannelServiceConfig.MethodInfo
private final Object
private final RetriableStream.Throttle
private 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 ManagedChannelServiceConfig
empty()
Returns an emptyManagedChannelServiceConfig
.boolean
(package private) static ManagedChannelServiceConfig
fromServiceConfig
(Map<String, ?> serviceConfig, boolean retryEnabled, int maxRetryAttemptsLimit, int maxHedgedAttemptsLimit, Object loadBalancingConfig) Parses the Channel level config values (e.g.(package private) InternalConfigSelector
Used as a fallback per-RPC config supplier when the attributes value ofInternalConfigSelector.KEY
is not available.(package private) Object
(package private) ManagedChannelServiceConfig.MethodInfo
getMethodConfig
(MethodDescriptor<?, ?> method) (package private) RetriableStream.Throttle
int
hashCode()
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.KEY
is not available. Returnsnull
if there is no method config in this service config. -
getLoadBalancingConfig
-
getRetryThrottling
-
getMethodConfig
-
equals
-
hashCode
public int hashCode() -
toString
-