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.Object
Equivalent of MethodConfig from a ServiceConfig with restrictions from Channel setting.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) HedgingPolicy
hedgingPolicy
(package private) static CallOptions.Key<ManagedChannelServiceConfig.MethodInfo>
KEY
(package private) java.lang.Integer
maxInboundMessageSize
(package private) java.lang.Integer
maxOutboundMessageSize
(package private) RetryPolicy
retryPolicy
(package private) java.lang.Long
timeoutNanos
(package private) java.lang.Boolean
waitForReady
-
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 boolean
equals(java.lang.Object other)
int
hashCode()
private static HedgingPolicy
hedgingPolicy(java.util.Map<java.lang.String,?> hedgingPolicy, int maxAttemptsLimit)
private static RetryPolicy
retryPolicy(java.util.Map<java.lang.String,?> retryPolicy, int maxAttemptsLimit)
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-