A FailureAccrualPolicy is used by FailureAccrualFactory to determine
whether to mark an endpoint dead upon a request failure.
A FailureAccrualPolicy is used by FailureAccrualFactory to determine
whether to mark an endpoint dead upon a request failure. On each successful
response, FailureAccrualFactory calls recordSuccess(). On each failure,
FailureAccrualFactory calls markDeadOnFailure() to obtain the duration
to mark the endpoint dead for; (Some(Duration)), or None.
A
FailureAccrualPolicyis used byFailureAccrualFactoryto determine whether to mark an endpoint dead upon a request failure. On each successful response,FailureAccrualFactorycallsrecordSuccess(). On each failure,FailureAccrualFactorycallsmarkDeadOnFailure()to obtain the duration to mark the endpoint dead for; (Some(Duration)), or None.The user guide for more details.