ChaosConfigBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var exception: () -> Throwable

Factory for the exception thrown on a simulated failure.

Link copied to clipboard

Probability (0.0..1.0) that a given call fails.

Link copied to clipboard

Fixed latency added before every call.

Link copied to clipboard

Additional random latency added on top of latency.

Link copied to clipboard

Source of randomness; set to a seeded Random for deterministic tests.

Functions

Link copied to clipboard

Builds the ChaosConfig from the current builder state.