com.ccadllc.cedi.circuitbreaker.statistics.FailureStatistics
- the FailureSettings#Test configuration for testing an open CircuitBreaker
, including the minimum number of
consecutive tests to close an open CB and the minimum time interval between tests (between which program executions are failed
fast without executing).
- the java.time.Instant
timestamp indicating the time the last test was executed.FailureSettings#Test
configuration for testing an open CircuitBreaker
.
- the current number of consecutive test execution successes.
- the FailureSettings#Test configuration for testing an open CircuitBreaker
, including the minimum number of
consecutive tests to close an open CB and the minimum time interval between tests (between which program executions are failed
fast without executing).
Used by CircuitBreakers to determine if a test interval time has passed (or is in the past, thus the passed/past play on words of the name).
Used by CircuitBreakers to determine if a test interval time has passed (or is in the past, thus the passed/past play on words of the name).
- the current java.time.Instant
timestamp.
timeHasPassed - a Boolean
indicating that the configured test time interval has passed between the timestamp
of this instance and the current
timestamp passed into this method.
Renders the test as a human-readable string value.
- the current number of consecutive test execution successes.
- the java.time.Instant
timestamp indicating the time the last test was executed.FailureSettings#Test
configuration for testing an open CircuitBreaker
.
Updates this testing instance, passing in the test success/failure indicator and a timestamp signifying when the test took place.
Updates this testing instance, passing in the test success/failure indicator and a timestamp signifying when the test took place. It returns an updated instance with the state modified appropriately.
- a java.time.Instant
timestamp indicating the time at which the test is being updated.
- a boolean flag indicating whether or not the test execution was successful.
updatedTest - a new instance with the state updated appropriately.
This data type is used for testing the protected program by periodically letting the program execute when the associated CircuitBreaker is open, so that we can determine when it is appropriate to close the CB after a configured minimum number of consecutive execution successes.
- the FailureSettings#Test configuration for testing an open
CircuitBreaker
, including the minimum number of consecutive tests to close an open CB and the minimum time interval between tests (between which program executions are failed fast without executing).- the
java.time.Instant
timestamp indicating the time the last test was executed.FailureSettings#Test configuration for testing an openCircuitBreaker
.- the current number of consecutive test execution successes.