Package io.grpc.internal
Class HedgingPolicy
- java.lang.Object
-
- io.grpc.internal.HedgingPolicy
-
@Immutable final class HedgingPolicy extends java.lang.Object
Hedging policy data object.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
hedgingDelayNanos
(package private) int
maxAttempts
(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 boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.String
toString()
-
-
-
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.
-
-