T
- the type of result that the associated future operation producesA
- the attachment typepublic abstract static class IoFuture.HandlingNotifier<T,A> extends Object implements IoFuture.Notifier<T,A>
IoFuture.Notifier
implementations.Constructor and Description |
---|
HandlingNotifier() |
Modifier and Type | Method and Description |
---|---|
void |
handleCancelled(A attachment)
Handle cancellation.
|
void |
handleDone(T data,
A attachment)
Handle completion.
|
void |
handleFailed(IOException exception,
A attachment)
Handle failure.
|
void |
notify(IoFuture<? extends T> future,
A attachment)
Receive notification of the completion of an outstanding operation.
|
public void notify(IoFuture<? extends T> future, A attachment)
notify
in interface IoFuture.Notifier<T,A>
future
- the future corresponding to this operationattachment
- the attachmentpublic void handleCancelled(A attachment)
attachment
- the attachmentpublic void handleFailed(IOException exception, A attachment)
exception
- the failure reasonattachment
- the attachmentCopyright © 2020 JBoss by Red Hat. All rights reserved.