Package io.grpc.internal
Class ManagedChannelServiceConfig.MethodInfo
- java.lang.Object
-
- io.grpc.internal.ManagedChannelServiceConfig.MethodInfo
-
- Enclosing class:
- ManagedChannelServiceConfig
static final class ManagedChannelServiceConfig.MethodInfo extends java.lang.ObjectEquivalent of MethodConfig from a ServiceConfig with restrictions from Channel setting.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) HedgingPolicyhedgingPolicy(package private) static CallOptions.Key<ManagedChannelServiceConfig.MethodInfo>KEY(package private) java.lang.IntegermaxInboundMessageSize(package private) java.lang.IntegermaxOutboundMessageSize(package private) RetryPolicyretryPolicy(package private) java.lang.LongtimeoutNanos(package private) java.lang.BooleanwaitForReady
-
Constructor Summary
Constructors Constructor Description MethodInfo(java.util.Map<java.lang.String,?> methodConfig, boolean retryEnabled, int maxRetryAttemptsLimit, int maxHedgedAttemptsLimit)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()private static HedgingPolicyhedgingPolicy(java.util.Map<java.lang.String,?> hedgingPolicy, int maxAttemptsLimit)private static RetryPolicyretryPolicy(java.util.Map<java.lang.String,?> retryPolicy, int maxAttemptsLimit)java.lang.StringtoString()
-
-
-
Field Detail
-
KEY
static final CallOptions.Key<ManagedChannelServiceConfig.MethodInfo> KEY
-
timeoutNanos
final java.lang.Long timeoutNanos
-
waitForReady
final java.lang.Boolean waitForReady
-
maxInboundMessageSize
final java.lang.Integer maxInboundMessageSize
-
maxOutboundMessageSize
final java.lang.Integer maxOutboundMessageSize
-
retryPolicy
final RetryPolicy retryPolicy
-
hedgingPolicy
final HedgingPolicy hedgingPolicy
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
retryPolicy
private static RetryPolicy retryPolicy(java.util.Map<java.lang.String,?> retryPolicy, int maxAttemptsLimit)
-
hedgingPolicy
private static HedgingPolicy hedgingPolicy(java.util.Map<java.lang.String,?> hedgingPolicy, int maxAttemptsLimit)
-
-