Packages

abstract class Recover[+T] extends RecoverBridge[T]

Callback for the Future.recover operation that conditionally turns failures into successes.

SAM (Single Abstract Method) class

Java API

Annotations
@nowarn()
Source
Future.scala
Linear Supertypes
RecoverBridge[T], AbstractPartialFunction[Throwable, T], PartialFunction[Throwable, T], (Throwable) => T, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Recover
  2. RecoverBridge
  3. AbstractPartialFunction
  4. PartialFunction
  5. Function1
  6. AnyRef
  7. Any
Implicitly
  1. by UnliftOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Recover()

Abstract Value Members

  1. abstract def recover(failure: Throwable): T

    This method will be invoked once when/if the Future this recover callback is registered on becomes completed with a failure.

    This method will be invoked once when/if the Future this recover callback is registered on becomes completed with a failure.

    returns

    a successful value for the passed in failure Throws the passed in failure to propagate it. Java API

    Annotations
    @throws(classOf[Throwable])

Concrete Value Members

  1. def andThen[C](k: PartialFunction[T, C]): PartialFunction[Throwable, C]
    Definition Classes
    PartialFunction
  2. def andThen[C](k: (T) => C): PartialFunction[Throwable, C]
    Definition Classes
    PartialFunction → Function1
  3. final def apply(t: Throwable): T
    Definition Classes
    RecoverBridge → AbstractPartialFunction → Function1
  4. def applyOrElse[A1 <: Throwable, B1 >: T](x: A1, default: (A1) => B1): B1
    Definition Classes
    PartialFunction
  5. def compose[R](k: PartialFunction[R, Throwable]): PartialFunction[R, T]
    Definition Classes
    PartialFunction
  6. def compose[A](g: (A) => Throwable): (A) => T
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def elementWise: ElementWiseExtractor[Throwable, T]
    Definition Classes
    PartialFunction
  8. final def isDefinedAt(t: Throwable): Boolean
    Definition Classes
    RecoverBridge → PartialFunction
  9. def lift: (Throwable) => Option[T]
    Definition Classes
    PartialFunction
  10. def orElse[A1 <: Throwable, B1 >: T](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
    Definition Classes
    PartialFunction
  11. def runWith[U](action: (T) => U): (Throwable) => Boolean
    Definition Classes
    PartialFunction
  12. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  13. def unapply(a: Throwable): Option[T]
    Definition Classes
    PartialFunction
  14. def unlift: PartialFunction[Throwable, B]
    Implicit
    This member is added by an implicit conversion from Recover[T] toUnliftOps[Throwable, B] performed by method UnliftOps in scala.Function1.This conversion will take place only if T is a subclass of Option[B] (T <: Option[B]).
    Definition Classes
    UnliftOps