Package io.grpc.internal
Class HedgingPolicy
java.lang.Object
io.grpc.internal.HedgingPolicy
Hedging policy data object.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final long(package private) final int(package private) final Set<Status.Code> -
Constructor Summary
ConstructorsConstructorDescriptionHedgingPolicy(int maxAttempts, long hedgingDelayNanos, 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
-
Field Details
-
maxAttempts
final int maxAttempts -
hedgingDelayNanos
final long hedgingDelayNanos -
nonFatalStatusCodes
-
-
Constructor Details
-
HedgingPolicy
HedgingPolicy(int maxAttempts, long hedgingDelayNanos, 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 Details