T - the future typeA - the attachment typepublic abstract static class AsyncFuture.AbstractListener<T,A> extends Object implements AsyncFuture.Listener<T,A>
Listener interface. The implementation
methods do nothing unless overridden.| Constructor and Description |
|---|
AsyncFuture.AbstractListener() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 attachmentCopyright © 2012 JBoss by Red Hat. All Rights Reserved.