Builder
class Builder
Builder for FaultInjector.
Functions
Link copied to clipboard
Builds the FaultInjector with the configured settings.
Link copied to clipboard
Sets a fixed delay added before executing the block.
Link copied to clipboard
Enables or disables jitter on the delay (±20% randomization).
Link copied to clipboard
Sets the exception factory to use when a failure is injected.
Link copied to clipboard
Sets a deterministic failure count: the first count calls will throw, then succeed. Takes precedence over failureRate when > 0. Preferred over failureRate for tests.
Link copied to clipboard
Sets the probability of throwing an exception on each call. Prefer failCount for deterministic tests.