http4k / org.http4k.chaos / ChaosBehaviours
object ChaosBehaviours
Name | Summary |
---|---|
BlockThread | Blocks the current thread.object BlockThread |
EatMemory | Allocates memory in a busy loop until an OOM occurs.object EatMemory |
KillProcess | System exits from the process.object KillProcess |
Latency | Blocks the thread for a random amount of time within the allocated range.object Latency |
NoBody | Strips the entire body from a response.object NoBody |
None | Does absolutely nothing.object None |
ReturnStatus | Returns an empty response with the appropriate status.object ReturnStatus |
SnipBody | Strips the body from a response to a particular length.object SnipBody |
SnipRequestBody | Strips the body from a request to a particular length.object SnipRequestBody |
StackOverflow | Allocates memory in a busy loop until an OOM occurs.object StackOverflow |
ThrowException | Throws the appropriate exception.object ThrowException |
Variable | Provide a means of modifying a ChaosBehaviour at runtime.class Variable : Behaviour |