public abstract class RandomizedExponentialBackoffCaller<T> extends Object
| Constructor and Description |
|---|
RandomizedExponentialBackoffCaller(RetriableCallerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
T |
call(Supplier<Result<T>> resultSupplier) |
protected long |
getRandomizedExponentialWaitingTime(int retries) |
protected long |
getSleepWaitingTime(long maxWaitingValue,
long randomizedExponentialBackoff) |
abstract boolean |
isRetriable(Result<T> result) |
public RandomizedExponentialBackoffCaller(RetriableCallerConfiguration configuration)
public T call(Supplier<Result<T>> resultSupplier) throws InterruptedException
InterruptedExceptionprotected long getSleepWaitingTime(long maxWaitingValue,
long randomizedExponentialBackoff)
protected long getRandomizedExponentialWaitingTime(int retries)
Copyright © 2023. All rights reserved.