Package io.grpc.internal
Class RetryPolicy
java.lang.Object
io.grpc.internal.RetryPolicy
Retry policy data object.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final double
(package private) final long
(package private) final int
(package private) final long
(package private) final Long
(package private) final Set
<Status.Code> -
Constructor Summary
ConstructorsConstructorDescriptionRetryPolicy
(int maxAttempts, long initialBackoffNanos, long maxBackoffNanos, double backoffMultiplier, Long perAttemptRecvTimeoutNanos, Set<Status.Code> retryableStatusCodes) 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 -
initialBackoffNanos
final long initialBackoffNanos -
maxBackoffNanos
final long maxBackoffNanos -
backoffMultiplier
final double backoffMultiplier -
perAttemptRecvTimeoutNanos
-
retryableStatusCodes
-
-
Constructor Details
-
RetryPolicy
RetryPolicy(int maxAttempts, long initialBackoffNanos, long maxBackoffNanos, double backoffMultiplier, @Nullable Long perAttemptRecvTimeoutNanos, @Nonnull Set<Status.Code> retryableStatusCodes) 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