11package tech .ydb .common .retry ;
22
3+
34import tech .ydb .core .Status ;
45import tech .ydb .core .UnexpectedResultException ;
56
@@ -15,10 +16,10 @@ public interface RetryConfig {
1516 /**
1617 * Returns retry policy for the given {@link Status} and {@code null} if that status is not retryable
1718 *
18- * @param code status to check
19+ * @param status status to check
1920 * @return policy of retries or {@code null} if the status is not retryable
2021 */
21- RetryPolicy getStatusRetryPolicy (Status code );
22+ RetryPolicy getStatusRetryPolicy (Status status );
2223
2324 /**
2425 * Returns retry policy for the given exception and {@code null} if that exception is not retryable
@@ -36,7 +37,7 @@ default RetryPolicy getThrowableRetryPolicy(Throwable th) {
3637 }
3738
3839 /**
39- * Infinity retries with default exponential delay.<br>That policy <b>does not</b> retries <i>conditionally</i>
40+ * Infinity retries with default exponential delay.<br>This policy <b>does not</b> retries <i>conditionally</i>
4041 * retryable errors so it can be used for both as idempotent and non idempotent operations
4142 *
4243 * @return retry configuration object
@@ -46,7 +47,7 @@ static RetryConfig retryForever() {
4647 }
4748
4849 /**
49- * Retries until the specified elapsed milliseconds expire.<br>That policy <b>does not</b> retries
50+ * Retries until the specified elapsed milliseconds expire.<br>This policy <b>does not</b> retries
5051 * <i>conditionally</i> retryable errors so it can be used for both as idempotent and non idempotent operations
5152 * @param maxElapsedMs maximum timeout for retries
5253 * @return retry configuration object
@@ -56,7 +57,7 @@ static RetryConfig retryUntilElapsed(long maxElapsedMs) {
5657 }
5758
5859 /**
59- * Infinity retries with default exponential delay.<br>That policy <b>does</b> retries <i>conditionally</i>
60+ * Infinity retries with default exponential delay.<br>This policy <b>does</b> retries <i>conditionally</i>
6061 * retryable errors so it can be used <b>ONLY</b> for idempotent operations
6162 * @return retry configuration object
6263 */
@@ -65,7 +66,7 @@ static RetryConfig idempotentRetryForever() {
6566 }
6667
6768 /**
68- * Retries until the specified elapsed milliseconds expire.<br>That policy <b>does</b> retries
69+ * Retries until the specified elapsed milliseconds expire.<br>This policy <b>does</b> retries
6970 * <i>conditionally</i> retryable errors so it can be used <b>ONLY</b> for idempotent operations
7071 * @param maxElapsedMs maximum timeout for retries
7172 * @return retry configuration object
0 commit comments