Packages

c

akka.dispatch

OnComplete

abstract class OnComplete[-T] extends CallbackBridge[Try[T]]

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

Java API

Source
Future.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OnComplete
  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 OnComplete()

Abstract Value Members

  1. abstract def onComplete(failure: Throwable, success: T): Unit

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

    This method will be invoked once when/if a Future that this callback is registered on becomes completed with a failure or a success. In the case of success then "failure" will be null, and in the case of failure the "success" will be null.

    Annotations
    @throws( classOf[Throwable] )

Concrete Value Members

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