public class BackoffConfiguration extends Object
The configuration includes: - a backoff function used to gradually reduce the request rate in case of errors - a backon function used to gradually go back to the normal request rate - the list of status codes that will fire a backoff - for operations that involve a group of requests, the minimum percentage of failed requests to apply backoff
| Modifier and Type | Class and Description |
|---|---|
static class |
BackoffConfiguration.Builder |
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_BACKOFF_BASE |
static double |
DEFAULT_BACKOFF_DISPERSION |
static double |
DEFAULT_BACKOFF_MULTIPLIER |
static int |
DEFAULT_BACKOFF_STEPS |
static double |
DEFAULT_BACKON_BASE |
static double |
DEFAULT_BACKON_DISPERSION |
static double |
DEFAULT_BACKON_MULTIPLIER |
static int |
DEFAULT_BACKON_STEPS |
static double |
DEFAULT_FAILURE_PERCENTAGE |
static List<Integer> |
DEFAULT_OUTAGE_STATUS_CODES |
| Modifier | Constructor and Description |
|---|---|
protected |
BackoffConfiguration(BackoffConfiguration.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Function<Integer,Integer> |
backoff() |
int |
backoffSteps() |
Function<Integer,Integer> |
backon() |
int |
backonSteps() |
double |
failurePercentage() |
boolean |
isFastRecovery() |
List<Integer> |
statusCodes() |
public static final double DEFAULT_BACKOFF_BASE
public static final double DEFAULT_BACKOFF_MULTIPLIER
public static final double DEFAULT_BACKOFF_DISPERSION
public static final int DEFAULT_BACKOFF_STEPS
public static final double DEFAULT_BACKON_BASE
public static final double DEFAULT_BACKON_MULTIPLIER
public static final double DEFAULT_BACKON_DISPERSION
public static final int DEFAULT_BACKON_STEPS
public static final double DEFAULT_FAILURE_PERCENTAGE
protected BackoffConfiguration(BackoffConfiguration.Builder builder)
Copyright © 2014–2021 MuleSoft, Inc.. All rights reserved.