akka.dispatch
Class OnSuccess<T>

java.lang.Object
  extended by scala.runtime.AbstractPartialFunction<T,scala.runtime.BoxedUnit>
      extended by akka.dispatch.japi.CallbackBridge<T>
          extended by akka.dispatch.OnSuccess<T>
All Implemented Interfaces:
scala.Function1<T,scala.runtime.BoxedUnit>, scala.PartialFunction<T,scala.runtime.BoxedUnit>

public abstract class OnSuccess<T>
extends japi.CallbackBridge<T>

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

Java API


Nested Class Summary
 
Nested classes/interfaces inherited from interface scala.PartialFunction
scala.PartialFunction.AndThen<A,B,C>, scala.PartialFunction.Lifted<A,B>, scala.PartialFunction.OrElse<A,B>, scala.PartialFunction.Unlifted<A,B>
 
Constructor Summary
OnSuccess()
           
 
Method Summary
protected  void internal(T result)
           
abstract  void onSuccess(T result)
          This method will be invoked once when/if a Future that this callback is registered on becomes successfully completed
 
Methods inherited from class akka.dispatch.japi.CallbackBridge
apply, isDefinedAt
 
Methods inherited from class scala.runtime.AbstractPartialFunction
andThen, andThen$mcDD$sp, andThen$mcDF$sp, andThen$mcDI$sp, andThen$mcDJ$sp, andThen$mcFD$sp, andThen$mcFF$sp, andThen$mcFI$sp, andThen$mcFJ$sp, andThen$mcID$sp, andThen$mcIF$sp, andThen$mcII$sp, andThen$mcIJ$sp, andThen$mcJD$sp, andThen$mcJF$sp, andThen$mcJI$sp, andThen$mcJJ$sp, andThen$mcVD$sp, andThen$mcVF$sp, andThen$mcVI$sp, andThen$mcVJ$sp, andThen$mcZD$sp, andThen$mcZF$sp, andThen$mcZI$sp, andThen$mcZJ$sp, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcDL$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcFL$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcIL$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcJL$sp, apply$mcLD$sp, apply$mcLF$sp, apply$mcLI$sp, apply$mcLJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcVL$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, apply$mcZL$sp, applyOrElse, compose, compose$mcDD$sp, compose$mcDF$sp, compose$mcDI$sp, compose$mcDJ$sp, compose$mcFD$sp, compose$mcFF$sp, compose$mcFI$sp, compose$mcFJ$sp, compose$mcID$sp, compose$mcIF$sp, compose$mcII$sp, compose$mcIJ$sp, compose$mcJD$sp, compose$mcJF$sp, compose$mcJI$sp, compose$mcJJ$sp, compose$mcVD$sp, compose$mcVF$sp, compose$mcVI$sp, compose$mcVJ$sp, compose$mcZD$sp, compose$mcZF$sp, compose$mcZI$sp, compose$mcZJ$sp, lift, orElse, runWith, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnSuccess

public OnSuccess()
Method Detail

internal

protected final void internal(T result)
Overrides:
internal in class japi.CallbackBridge<T>

onSuccess

public abstract void onSuccess(T result)
This method will be invoked once when/if a Future that this callback is registered on becomes successfully completed