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
FailureAccrualPolicy
is used byFailureAccrualFactory
to determine whether to mark an endpoint dead upon a request failure. On each successful response,FailureAccrualFactory
callsrecordSuccess()
. On each failure,FailureAccrualFactory
callsmarkDeadOnFailure()
to obtain the duration to mark the endpoint dead for; (Some(Duration)), or None.The user guide for more details.