|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompletionHandler<E>
Interface, which will be used by Grizzly to notify about asynchronous I/O operations status updates.
| Method Summary | |
|---|---|
void |
cancelled(Connection connection)
The I/O operation on the Connection was cancelled. |
void |
completed(Connection connection,
E result)
The I/O operation on the Connection was completed. |
void |
failed(Connection connection,
Throwable throwable)
The I/O operation on the Connection was failed. |
void |
updated(Connection connection,
E result)
The callback method may be called, when there is some progress in I/O operation execution, but it is still not completed |
| Method Detail |
|---|
void cancelled(Connection connection)
Connection was cancelled.
context -
void failed(Connection connection,
Throwable throwable)
Connection was failed.
context - throwable - error, which occurred during I/O operation execution
void completed(Connection connection,
E result)
Connection was completed.
context - result - the I/O operation result
void updated(Connection connection,
E result)
context - result - the current result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||