Creating 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 @daiso-tech/core/circuit-breaker API docs.