T - the future typeA - the attachment typepublic static interface AsyncFuture.Listener<T,A> extends EventListener
AsyncFuture which it was added to, as well as the attachment which was passed in to
AsyncFuture.addListener(Listener, Object).| 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.
|
void handleComplete(AsyncFuture<? extends T> future, A attachment)
future - the futureattachment - the attachmentvoid handleFailed(AsyncFuture<? extends T> future, Throwable cause, A attachment)
future - the futurecause - the reason for the failureattachment - the attachmentvoid handleCancelled(AsyncFuture<? extends T> future, A attachment)
future - the futureattachment - the attachmentCopyright © 2012 JBoss by Red Hat. All Rights Reserved.