|
XNIO API 3.1.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnio.IoFuture.HandlingNotifier<T,A>
T
- the type of result that the associated future operation producesA
- the attachment typepublic abstract static class IoFuture.HandlingNotifier<T,A>
A base notifier class that calls the designated handler method on notification. Use this class to reduce
boilerplate for standard IoFuture.Notifier
implementations.
Constructor Summary | |
---|---|
IoFuture.HandlingNotifier()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IoFuture.HandlingNotifier()
Method Detail |
---|
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 attachmentpublic void handleDone(T data, A attachment)
data
- the resultattachment
- the attachment
|
XNIO API 3.1.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |