akka.dispatch
Class Mapper<T,R>

java.lang.Object
  extended by scala.runtime.AbstractFunction1<T,R>
      extended by akka.dispatch.Mapper<T,R>
All Implemented Interfaces:
scala.Function1<T,R>

public abstract class Mapper<T,R>
extends scala.runtime.AbstractFunction1<T,R>

Callback for the Future.map and Future.flatMap operations that will be invoked if the Future that this callback is registered on becomes completed with a success. This callback is the equivalent of an akka.japi.Function

Override "apply" normally, or "checkedApply" if you need to throw checked exceptions.

SAM (Single Abstract Method) class

Java API


Constructor Summary
Mapper()
           
 
Method Summary
 R apply(T parameter)
          Override this method to perform the map operation, by default delegates to "checkedApply" which by default throws an UnsupportedOperationException.
 R checkedApply(T parameter)
          Override this method if you need to throw checked exceptions
 
Methods inherited from class scala.runtime.AbstractFunction1
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, compose, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Mapper

public Mapper()
Method Detail

apply

public R apply(T parameter)
Override this method to perform the map operation, by default delegates to "checkedApply" which by default throws an UnsupportedOperationException.

Parameters:
parameter - (undocumented)
Returns:
(undocumented)

checkedApply

public R checkedApply(T parameter)
Override this method if you need to throw checked exceptions

Parameters:
parameter - (undocumented)
Returns:
(undocumented)
Throws:
UnsupportedOperation - by default