object PossiblyRetryable
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.
- Alphabetic
- By Inheritance
- PossiblyRetryable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val PossiblyRetryableExceptions: PartialFunction[Try[_], Boolean]
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.
- val ResponseClassifier: ResponseClassifier
A com.twitter.finagle.service.ResponseClassifier which uses the PossiblyRetryableExceptions partial function to classify responses as retryable.
- def apply(t: Throwable): Boolean
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def possiblyRetryable(t: Throwable): Boolean
A Throwable is "possibly" retryable if:
A Throwable is "possibly" retryable if:
- it is not a cancellation b. it is not an exception or failure which should not be retried c. is a non-fatal exception
- t
the Throwable to inspect
- returns
true if the Throwable represents an Exception or Failure which is possibly retryable, false otherwise.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(t: Throwable): Option[Throwable]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()