Package io.grpc.internal
Class ManagedChannelServiceConfig
- java.lang.Object
-
- io.grpc.internal.ManagedChannelServiceConfig
-
final class ManagedChannelServiceConfig extends java.lang.ObjectManagedChannelServiceConfigis a fully parsed and validated representation of service configuration data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classManagedChannelServiceConfig.MethodInfoEquivalent of MethodConfig from a ServiceConfig with restrictions from Channel setting.(package private) static classManagedChannelServiceConfig.ServiceConfigConvertedSelector
-
Field Summary
Fields Modifier and Type Field Description private ManagedChannelServiceConfig.MethodInfodefaultMethodConfigprivate java.util.Map<java.lang.String,?>healthCheckingConfigprivate java.lang.ObjectloadBalancingConfigprivate RetriableStream.ThrottleretryThrottlingprivate java.util.Map<java.lang.String,ManagedChannelServiceConfig.MethodInfo>serviceMapprivate java.util.Map<java.lang.String,ManagedChannelServiceConfig.MethodInfo>serviceMethodMap
-
Constructor Summary
Constructors Constructor Description ManagedChannelServiceConfig(ManagedChannelServiceConfig.MethodInfo defaultMethodConfig, java.util.Map<java.lang.String,ManagedChannelServiceConfig.MethodInfo> serviceMethodMap, java.util.Map<java.lang.String,ManagedChannelServiceConfig.MethodInfo> serviceMap, RetriableStream.Throttle retryThrottling, java.lang.Object loadBalancingConfig, java.util.Map<java.lang.String,?> healthCheckingConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static ManagedChannelServiceConfigempty()Returns an emptyManagedChannelServiceConfig.booleanequals(java.lang.Object o)(package private) static ManagedChannelServiceConfigfromServiceConfig(java.util.Map<java.lang.String,?> serviceConfig, boolean retryEnabled, int maxRetryAttemptsLimit, int maxHedgedAttemptsLimit, java.lang.Object loadBalancingConfig)Parses the Channel level config values (e.g.(package private) InternalConfigSelectorgetDefaultConfigSelector()Used as a fallback per-RPC config supplier when the attributes value ofInternalConfigSelector.KEYis not available.(package private) java.util.Map<java.lang.String,?>getHealthCheckingConfig()(package private) java.lang.ObjectgetLoadBalancingConfig()(package private) ManagedChannelServiceConfig.MethodInfogetMethodConfig(MethodDescriptor<?,?> method)(package private) RetriableStream.ThrottlegetRetryThrottling()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
defaultMethodConfig
@Nullable private final ManagedChannelServiceConfig.MethodInfo defaultMethodConfig
-
serviceMethodMap
private final java.util.Map<java.lang.String,ManagedChannelServiceConfig.MethodInfo> serviceMethodMap
-
serviceMap
private final java.util.Map<java.lang.String,ManagedChannelServiceConfig.MethodInfo> serviceMap
-
retryThrottling
@Nullable private final RetriableStream.Throttle retryThrottling
-
loadBalancingConfig
@Nullable private final java.lang.Object loadBalancingConfig
-
healthCheckingConfig
@Nullable private final java.util.Map<java.lang.String,?> healthCheckingConfig
-
-
Constructor Detail
-
ManagedChannelServiceConfig
ManagedChannelServiceConfig(@Nullable ManagedChannelServiceConfig.MethodInfo defaultMethodConfig, java.util.Map<java.lang.String,ManagedChannelServiceConfig.MethodInfo> serviceMethodMap, java.util.Map<java.lang.String,ManagedChannelServiceConfig.MethodInfo> serviceMap, @Nullable RetriableStream.Throttle retryThrottling, @Nullable java.lang.Object loadBalancingConfig, @Nullable java.util.Map<java.lang.String,?> healthCheckingConfig)
-
-
Method Detail
-
empty
static ManagedChannelServiceConfig empty()
Returns an emptyManagedChannelServiceConfig.
-
fromServiceConfig
static ManagedChannelServiceConfig fromServiceConfig(java.util.Map<java.lang.String,?> serviceConfig, boolean retryEnabled, int maxRetryAttemptsLimit, int maxHedgedAttemptsLimit, @Nullable java.lang.Object loadBalancingConfig)
Parses the Channel level config values (e.g. excludes load balancing)
-
getHealthCheckingConfig
@Nullable java.util.Map<java.lang.String,?> getHealthCheckingConfig()
-
getDefaultConfigSelector
@Nullable InternalConfigSelector 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
@Nullable java.lang.Object getLoadBalancingConfig()
-
getRetryThrottling
@Nullable RetriableStream.Throttle getRetryThrottling()
-
getMethodConfig
@Nullable ManagedChannelServiceConfig.MethodInfo getMethodConfig(MethodDescriptor<?,?> method)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-