public class ChaosMode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ChaosMode.HttpResponse |
Modifier and Type | Field and Description |
---|---|
static int |
maxLevel |
static int |
minLevel |
Constructor and Description |
---|
ChaosMode() |
Modifier and Type | Method and Description |
---|---|
static ChaosMode.HttpResponse |
chaosHttpResponse()
Returns a new chaos response.
|
static int |
getChaosLevel()
The level.
|
static boolean |
isChaos()
True if now is time for some random expected errors, such as backend errors.
|
static boolean |
isEnabled()
True if chaos is enabled at all.
|
static boolean |
isUnexpectedChaos()
True if now is the time for some strange unexpected errors, like random exceptions etc.
|
static void |
setChaosLevel(int value)
Sets the level.
|
public static final int minLevel
public static final int maxLevel
public static boolean isEnabled()
public static boolean isChaos()
public static boolean isUnexpectedChaos()
public static int getChaosLevel()
public static void setChaosLevel(int value)
public static ChaosMode.HttpResponse chaosHttpResponse()