|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.koushikdutta.async.future.SimpleCancellable
com.koushikdutta.async.future.SimpleFuture<T>
com.koushikdutta.async.future.TransformFuture<T,F>
public abstract class TransformFuture<T,F>
| Field Summary |
|---|
| Fields inherited from class com.koushikdutta.async.future.SimpleCancellable |
|---|
COMPLETED |
| Constructor Summary | |
|---|---|
TransformFuture()
|
|
| Method Summary | |
|---|---|
protected void |
error(java.lang.Exception e)
|
TransformFuture<T,F> |
from(Future<F> future)
|
void |
onCompleted(java.lang.Exception e,
F result)
onCompleted is called by the Future with the result or exception of the asynchronous operation. |
protected abstract void |
transform(F result)
|
| Methods inherited from class com.koushikdutta.async.future.SimpleFuture |
|---|
cancel, cancel, get, get, getCompletionCallback, setCallback, setComplete, setComplete, setComplete, setComplete, setParent |
| Methods inherited from class com.koushikdutta.async.future.SimpleCancellable |
|---|
cancelCleanup, cleanup, completeCleanup, isCancelled, isDone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.concurrent.Future |
|---|
isCancelled, isDone |
| Methods inherited from interface com.koushikdutta.async.future.Cancellable |
|---|
isCancelled, isDone |
| Constructor Detail |
|---|
public TransformFuture()
| Method Detail |
|---|
public void onCompleted(java.lang.Exception e,
F result)
FutureCallback
onCompleted in interface FutureCallback<F>e - Exception encountered by the operationresult - Result returned from the operationpublic TransformFuture<T,F> from(Future<F> future)
protected void error(java.lang.Exception e)
protected abstract void transform(F result)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||