|
JBoss Threads 2.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the future typeA - the attachment typepublic static interface AsyncFuture.Listener<T,A>
A listener for an asynchronous future computation result. Each listener method is passed the
AsyncFuture which it was added to, as well as the attachment which was passed in to
AsyncFuture.addListener(Listener, Object).
| Method Summary | |
|---|---|
void |
handleCancelled(AsyncFuture<? extends T> future,
A attachment)
Handle a cancellation result. |
void |
handleComplete(AsyncFuture<? extends T> future,
A attachment)
Handle a successful computation result. |
void |
handleFailed(AsyncFuture<? extends T> future,
Throwable cause,
A attachment)
Handle a failure result. |
| Method Detail |
|---|
void handleComplete(AsyncFuture<? extends T> future,
A attachment)
future - the futureattachment - the attachment
void handleFailed(AsyncFuture<? extends T> future,
Throwable cause,
A attachment)
future - the futurecause - the reason for the failureattachment - the attachment
void handleCancelled(AsyncFuture<? extends T> future,
A attachment)
future - the futureattachment - the attachment
|
JBoss Threads 2.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||