|
JBoss Threads 2.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.threads.AsyncFuture.AbstractListener<T,A>
T
- the future typeA
- the attachment typepublic abstract static class AsyncFuture.AbstractListener<T,A>
An abstract base class for an implementation of the Listener
interface. The implementation
methods do nothing unless overridden.
Constructor Summary | |
---|---|
AsyncFuture.AbstractListener()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncFuture.AbstractListener()
Method Detail |
---|
public void handleComplete(AsyncFuture<? extends T> future, A attachment)
handleComplete
in interface AsyncFuture.Listener<T,A>
future
- the futureattachment
- the attachmentpublic void handleFailed(AsyncFuture<? extends T> future, Throwable cause, A attachment)
handleFailed
in interface AsyncFuture.Listener<T,A>
future
- the futurecause
- the reason for the failureattachment
- the attachmentpublic void handleCancelled(AsyncFuture<? extends T> future, A attachment)
handleCancelled
in interface AsyncFuture.Listener<T,A>
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 |