public class RetryExecutor extends Object
| Constructor and Description |
|---|
RetryExecutor(int maxRetries,
int initialWaitMs,
int maxWaitMs) |
RetryExecutor(int maxRetries,
int initialWaitMs,
int maxWaitMs,
Random random) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateExponentialDelay(int retriesAttempted) |
protected Duration |
computeDelayBeforeNextRetry(int retriesAttempted) |
<T> T |
retry(Callable<T> callable) |
public RetryExecutor(int maxRetries,
int initialWaitMs,
int maxWaitMs)
public RetryExecutor(int maxRetries,
int initialWaitMs,
int maxWaitMs,
Random random)
public <T> T retry(Callable<T> callable) throws RestClientException, IOException
RestClientExceptionIOExceptionprotected Duration computeDelayBeforeNextRetry(int retriesAttempted)
protected int calculateExponentialDelay(int retriesAttempted)
Copyright © 2025 Confluent, Inc.. All rights reserved.