Package io.grpc.internal
Class RetryPolicy
- java.lang.Object
-
- io.grpc.internal.RetryPolicy
-
@Immutable final class RetryPolicy extends java.lang.ObjectRetry policy data object.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) doublebackoffMultiplier(package private) longinitialBackoffNanos(package private) intmaxAttempts(package private) longmaxBackoffNanos(package private) java.lang.LongperAttemptRecvTimeoutNanos(package private) java.util.Set<Status.Code>retryableStatusCodes
-
Constructor Summary
Constructors Constructor Description RetryPolicy(int maxAttempts, long initialBackoffNanos, long maxBackoffNanos, double backoffMultiplier, java.lang.Long perAttemptRecvTimeoutNanos, java.util.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
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
-
initialBackoffNanos
final long initialBackoffNanos
-
maxBackoffNanos
final long maxBackoffNanos
-
backoffMultiplier
final double backoffMultiplier
-
perAttemptRecvTimeoutNanos
@Nullable final java.lang.Long perAttemptRecvTimeoutNanos
-
retryableStatusCodes
final java.util.Set<Status.Code> retryableStatusCodes
-
-
Constructor Detail
-
RetryPolicy
RetryPolicy(int maxAttempts, long initialBackoffNanos, long maxBackoffNanos, double backoffMultiplier, @Nullable java.lang.Long perAttemptRecvTimeoutNanos, @Nonnull java.util.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.
-
-