Packages

c

akka.dispatch

OnFailure

abstract class OnFailure extends CallbackBridge[Throwable]

Callback for when a Future is completed with a failure SAM (Single Abstract Method) class

Java API

Source
Future.scala
Linear Supertypes
CallbackBridge[Throwable], AbstractPartialFunction[Throwable, BoxedUnit], PartialFunction[Throwable, BoxedUnit], (Throwable) ⇒ BoxedUnit, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OnFailure
  2. CallbackBridge
  3. AbstractPartialFunction
  4. PartialFunction
  5. Function1
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OnFailure()

Abstract Value Members

  1. abstract def onFailure(failure: Throwable): Unit

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

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

    Annotations
    @throws( classOf[Throwable] )

Concrete Value Members

  1. def andThen[C](k: (BoxedUnit) ⇒ C): PartialFunction[Throwable, C]
    Definition Classes
    PartialFunction → Function1
  2. final def apply(t: Throwable): BoxedUnit
    Definition Classes
    CallbackBridge → AbstractPartialFunction → Function1
  3. def applyOrElse[A1 <: Throwable, B1 >: BoxedUnit](x: A1, default: (A1) ⇒ B1): B1
    Definition Classes
    PartialFunction
  4. def compose[A](g: (A) ⇒ Throwable): (A) ⇒ BoxedUnit
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def isDefinedAt(t: Throwable): Boolean
    Definition Classes
    CallbackBridge → PartialFunction
  6. def lift: (Throwable) ⇒ Option[BoxedUnit]
    Definition Classes
    PartialFunction
  7. def orElse[A1 <: Throwable, B1 >: BoxedUnit](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
    Definition Classes
    PartialFunction
  8. def runWith[U](action: (BoxedUnit) ⇒ U): (Throwable) ⇒ Boolean
    Definition Classes
    PartialFunction
  9. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any