public class RetryPolicy extends Object
| Modifier and Type | Field and Description |
|---|---|
static RetryPolicy |
NO_RETRY_POLICY |
| Constructor and Description |
|---|
RetryPolicy(DriftClientConfig config,
ExceptionClassifier exceptionClassifier) |
RetryPolicy(int maxRetries,
io.airlift.units.Duration minBackoffDelay,
io.airlift.units.Duration maxBackoffDelay,
double backoffScaleFactor,
io.airlift.units.Duration maxRetryTime,
ExceptionClassifier exceptionClassifier) |
| Modifier and Type | Method and Description |
|---|---|
ExceptionClassification |
classifyException(Throwable throwable,
boolean idempotent) |
io.airlift.units.Duration |
getBackoffDelay(int invocationAttempts) |
int |
getMaxRetries() |
io.airlift.units.Duration |
getMaxRetryTime() |
String |
toString() |
public static final RetryPolicy NO_RETRY_POLICY
public RetryPolicy(DriftClientConfig config, ExceptionClassifier exceptionClassifier)
public RetryPolicy(int maxRetries,
io.airlift.units.Duration minBackoffDelay,
io.airlift.units.Duration maxBackoffDelay,
double backoffScaleFactor,
io.airlift.units.Duration maxRetryTime,
ExceptionClassifier exceptionClassifier)
public int getMaxRetries()
public io.airlift.units.Duration getBackoffDelay(int invocationAttempts)
public io.airlift.units.Duration getMaxRetryTime()
public ExceptionClassification classifyException(Throwable throwable, boolean idempotent)
Copyright © 2012–2018. All rights reserved.