Home
last modified time | relevance | path

Searched refs:maxBackoffNanos (Results 1 – 5 of 5) sorted by relevance

/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DRetryPolicy.java36 final long maxBackoffNanos; field in RetryPolicy
51 long maxBackoffNanos, in RetryPolicy() argument
56 this.maxBackoffNanos = maxBackoffNanos; in RetryPolicy()
66 maxBackoffNanos, in hashCode()
79 && this.maxBackoffNanos == that.maxBackoffNanos in equals()
89 .add("maxBackoffNanos", maxBackoffNanos) in toString()
DExponentialBackoffPolicy.java41 private long maxBackoffNanos = TimeUnit.MINUTES.toNanos(2); field in ExponentialBackoffPolicy
50 nextBackoffNanos = Math.min((long) (currentBackoffNanos * multiplier), maxBackoffNanos); in nextBackoffNanos()
79 ExponentialBackoffPolicy setMaxBackoffNanos(long maxBackoffNanos) { in setMaxBackoffNanos() argument
80 this.maxBackoffNanos = maxBackoffNanos; in setMaxBackoffNanos()
DServiceConfigInterceptor.java220 long maxBackoffNanos = checkNotNull( in retryPolicy() local
224 maxBackoffNanos > 0, "maxBackoff must be greater than 0: %s", maxBackoffNanos); in retryPolicy()
247 maxAttempts, initialBackoffNanos, maxBackoffNanos, backoffMultiplier, in retryPolicy()
DRetriableStream.java665 retryPolicy.maxBackoffNanos); in makeRetryDecision()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DExponentialBackoffPolicyTest.java42 long maxBackoffNanos = 120 * 1000; in maxDelayReached() local
43 policy.setMaxBackoffNanos(maxBackoffNanos) in maxDelayReached()
47 if (maxBackoffNanos == policy.nextBackoffNanos()) { in maxDelayReached()
51 assertEquals("max delay not reached", maxBackoffNanos, policy.nextBackoffNanos()); in maxDelayReached()