Finagle's default ResponseClassifier.
Finagle's default ResponseClassifier.
Finagle does not have application domain knowledge and
as such this treats all Return
responses as ResponseClass.Success,
all retryable Throws
as ResponseClass.RetryableFailure
and all Throws
as ResponseClass.NonRetryableFailure.
It is a total function covering the entire input domain and as such it is recommended that it is used with user's classifiers:
theirClassier.applyOrElse(theirReqRep, ResponseClassifier.Default)
Create a ResponseClassifier with the given name for its toString
.