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