com.ccadllc.cedi.circuitbreaker.statistics
Lifecycle function invoked by the CircuitBreaker after the program execution has completed.
Lifecycle function invoked by the CircuitBreaker after the program execution has completed. If goes down two separate paths depending on whether the circuit breaker is open and therefore the execution is a test or if it is a normal execution. In either case, the statistics are updated appropriately and a new value is returned.
- the timestamp of the execution completion.
- the indicator as to whether the request was successful or a failure.
newStatistics - The metrics are updated based on the evaluation of the statistics.
Lifecycle function invoked by the CircuitBreaker after it performed circuit breaker open checked and determined the program execution request should go forth (either for testing if the circuit breaker is open or for normal execution).
Lifecycle function invoked by the CircuitBreaker after it performed circuit breaker open checked and determined the program execution request should go forth (either for testing if the circuit breaker is open or for normal execution).
newStatistics - The metrics are updated with the last activity timestamp updated.
- if the statistics have undergone any state change, the last change will be present here.
- the configuration of the associated CircuitBreaker, also used to configure this statistics instance.
- the unique identifier of the CircuitBreaker which "owns" this statistics instance.
- the timestamp of the last state change for these statistics.
- the sliding time-based metrics for the success/failure indicators of the protected program execution.
Render this statistics object in human readable form.
Render this statistics object in human readable form.
- if the associated CircuitBreaker is open, there will be a value here that maintains statistics on program execution tests (periodically allowing a program to execute and keeping track of the consecutive successes or, if a test failure, resetting these stats).
This represents the statistics that CircuitBreaker instances use to track the success and failure rates of their protected programs, for use in determining when to trip ("open") the breaker and, when open, to maintain the periodic testing state for use in determining when the breaker can be closed and normal traffic let flow to the program.