akka.dispatch

Recover

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

Linear Supertypes
RecoverBridge[T], PartialFunction[Throwable, T], (Throwable) ⇒ T, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Recover
  2. RecoverBridge
  3. PartialFunction
  4. Function1
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

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

    Annotations
    @throws( classOf[Throwable] )
    Exceptions thrown
    the

    passed in failure to propagate it.

    Java API

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def andThen[C](k: (T) ⇒ C): PartialFunction[Throwable, C]

    Definition Classes
    PartialFunction → Function1
  7. final def apply(t: Throwable): T

    Definition Classes
    RecoverBridge → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def compose[A](g: (A) ⇒ Throwable): (A) ⇒ T

    Definition Classes
    Function1
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def internal(result: Throwable): T

    Attributes
    protected
    Definition Classes
    RecoverRecoverBridge
  17. final def isDefinedAt(t: Throwable): Boolean

    Definition Classes
    RecoverBridge → PartialFunction
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def lift: (Throwable) ⇒ Option[T]

    Definition Classes
    PartialFunction
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def orElse[A1 <: Throwable, B1 >: T](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Definition Classes
    PartialFunction
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from RecoverBridge[T]

Inherited from PartialFunction[Throwable, T]

Inherited from (Throwable) ⇒ T

Inherited from AnyRef

Inherited from Any