|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.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 result,
A attachment)
Handle completion. |
void |
handleFailed(java.io.IOException exception,
A attachment)
Handle failure. |
void |
notify(IoFuture<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<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 attachment
public void handleFailed(java.io.IOException exception,
A attachment)
exception - the failure reasonattachment - the attachment
public void handleDone(T result,
A attachment)
result - the resultattachment - the attachment
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||