Package io.grpc.internal
Class HedgingPolicy
- java.lang.Object
-
- io.grpc.internal.HedgingPolicy
-
@Immutable final class HedgingPolicy extends java.lang.ObjectHedging policy data object.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) longhedgingDelayNanos(package private) intmaxAttempts(package private) java.util.Set<Status.Code>nonFatalStatusCodes
-
Constructor Summary
Constructors Constructor Description HedgingPolicy(int maxAttempts, long hedgingDelayNanos, java.util.Set<Status.Code> nonFatalStatusCodes)The caller is supposed to have validated the arguments and handled throwing exception or logging warnings already, so we avoid repeating args check here.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
maxAttempts
final int maxAttempts
-
hedgingDelayNanos
final long hedgingDelayNanos
-
nonFatalStatusCodes
final java.util.Set<Status.Code> nonFatalStatusCodes
-
-
Constructor Detail
-
HedgingPolicy
HedgingPolicy(int maxAttempts, long hedgingDelayNanos, java.util.Set<Status.Code> nonFatalStatusCodes)The caller is supposed to have validated the arguments and handled throwing exception or logging warnings already, so we avoid repeating args check here.
-
-