Rexsilient.CircuitBreaker.Strategy.Count (Rexsilient v1.0.0)

Copy Markdown View Source

Opens the breaker after a number of failures.

Failures are counted from the moment the breaker was last closed; successes do not reset the count.

Options

  • :threshold - the number of failures that opens the breaker. Required.

Examples

strategy Rexsilient.CircuitBreaker.Strategy.Count, threshold: 5