com.ccadllc.cedi.circuitbreaker
- the time-based window to be used to constrain the number of program execution
success/failure indicators to store in order to determine the percentage of failures over this
time period. An example would be SampleWindow(2.minutes)
which means maintain the last two minutes
of program execution success/failure indicators for a program protected by a given CircuitBreaker.
- the Percentage of items within the sample window which indicate program
failure. For instance, if the percentage were Percentage(40.0)
and there were 50 sample items in the
2 minute window, with 25 indicating program failure, then since 50% is greater than 40%, the circuit breaker
would open.
- the testing configuration is used when the circuit breaker is open in order to determine how often a program should be executed rather than failed fast and then how many consecutively successful test executions need to occur in order to close the circuit breaker and allow normal operation of the protected program.
- The CircuitBreaker can be enabled or disabled with this parameter.
- the Percentage of items within the sample window which indicate program failure.
- the Percentage of items within the sample window which indicate program
failure. For instance, if the percentage were Percentage(40.0)
and there were 50 sample items in the
2 minute window, with 25 indicating program failure, then since 50% is greater than 40%, the circuit breaker
would open.
- The CircuitBreaker can be enabled or disabled with this parameter.
- the time-based window to be used to constrain the number of program execution success/failure indicators to store in order to determine the percentage of failures over this time period.
- the time-based window to be used to constrain the number of program execution
success/failure indicators to store in order to determine the percentage of failures over this
time period. An example would be SampleWindow(2.minutes)
which means maintain the last two minutes
of program execution success/failure indicators for a program protected by a given CircuitBreaker.
- the testing configuration is used when the circuit breaker is open in order to determine how often a program should be executed rather than failed fast and then how many consecutively successful test executions need to occur in order to close the circuit breaker and allow normal operation of the protected program.
The configuration which controls the failure-based CircuitBreakers (that is, those circuit breakers which are created via the CircuitBreakerRegistry#forFailure function).
- the time-based window to be used to constrain the number of program execution success/failure indicators to store in order to determine the percentage of failures over this time period. An example would be
SampleWindow(2.minutes)
which means maintain the last two minutes of program execution success/failure indicators for a program protected by a given CircuitBreaker.- the Percentage of items within the sample window which indicate program failure. For instance, if the percentage were
Percentage(40.0)
and there were 50 sample items in the 2 minute window, with 25 indicating program failure, then since 50% is greater than 40%, the circuit breaker would open.- the testing configuration is used when the circuit breaker is open in order to determine how often a program should be executed rather than failed fast and then how many consecutively successful test executions need to occur in order to close the circuit breaker and allow normal operation of the protected program.
- The CircuitBreaker can be enabled or disabled with this parameter.