Skip to main content

Creating CircuitBreaker policies

Implementing your custom ICircuitBreakerPolicy​

In order to create custom circuit-breaker you need to implement the ICircuitBreakerPolicy contract. Custom circuit-breaker policies can be used with DatabaseCircuitBreakerAdapter and DatabaseCircuitBreakerProviderFactory.

To understand how to implement a custom ICircuitBreakerPolicy, refer to the ConsecutiveBreaker implementation.

Further information​

For further information refer to eridu-tech/circuit-breaker API docs.