Package akka.dispatch
Class OnComplete<T>
- java.lang.Object
-
- scala.runtime.AbstractPartialFunction<T,scala.runtime.BoxedUnit>
-
- akka.dispatch.japi.CallbackBridge<scala.util.Try<T>>
-
- akka.dispatch.OnComplete<T>
-
- All Implemented Interfaces:
scala.Function1<scala.util.Try<T>,scala.runtime.BoxedUnit>
,scala.PartialFunction<scala.util.Try<T>,scala.runtime.BoxedUnit>
public abstract class OnComplete<T> extends japi.CallbackBridge<scala.util.Try<T>>
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface scala.PartialFunction
scala.PartialFunction.AndThen<A extends java.lang.Object,B extends java.lang.Object,C extends java.lang.Object>, scala.PartialFunction.Lifted<A extends java.lang.Object,B extends java.lang.Object>, scala.PartialFunction.OrElse<A extends java.lang.Object,B extends java.lang.Object>, scala.PartialFunction.Unlifted<A extends java.lang.Object,B extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description OnComplete()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
internal(scala.util.Try<T> value)
abstract void
onComplete(java.lang.Throwable failure, T 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.-
Methods inherited from class akka.dispatch.japi.CallbackBridge
apply, isDefinedAt
-
Methods inherited from class scala.runtime.AbstractPartialFunction
andThen, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, applyOrElse, compose, lift, orElse, runWith, toString
-
-
-
-
Method Detail
-
internal
protected final void internal(scala.util.Try<T> value)
- Overrides:
internal
in classjapi.CallbackBridge<scala.util.Try<T>>
-
onComplete
public abstract void onComplete(java.lang.Throwable failure, T success) throws java.lang.Throwable
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.- Parameters:
failure
- (undocumented)success
- (undocumented)- Throws:
java.lang.Throwable
-
-