Partial function which can be used to determine if a request is possibly retryable.
Partial function which can be used to determine if a request is possibly retryable. "Possibly" retryable means the returned exception is not a cancellation, does not represent an exception of failure that should not be tried and lastly is non-fatal.
A com.twitter.finagle.service.ResponseClassifier which uses the PossiblyRetryableExceptions partial function to classify responses as retryable.
A Throwable is "possibly" retryable if:
A Throwable is "possibly" retryable if:
the Throwable to inspect
true if the Throwable represents an Exception or Failure which is possibly retryable, false otherwise.
PossiblyRetryable attempts to determine if a request is possibly retryable based on the returned
Try
.The request is "possibly retryable" because while the framework can say the request is retryable due to the type of com.twitter.scrooge.ThriftException returned it is ultimately up to the application to decide if the returned com.twitter.scrooge.ThriftException actually makes sense to be retried.