com.twitter.finagle.service.exp
Invoked by FailureAccrualFactory when a non-probing request fails.
Invoked by FailureAccrualFactory when a non-probing request fails. If it returns Some(Duration), the FailureAccrualFactory will mark the endpoint dead for the specified Duration.
Invoked by FailureAccrualFactory when a request is successful.
Invoked by FailureAccrualFactory when an endpoint is revived after probing.
Invoked by FailureAccrualFactory when an endpoint is revived after probing. Used to reset any history.
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.