|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.CompletionHandlerAdapter<E>
public class CompletionHandlerAdapter<E>
Adapter for CompletionHandler interface, which has empty
implementation for all callback methods.
| Constructor Summary | |
|---|---|
CompletionHandlerAdapter()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompletionHandlerAdapter()
| Method Detail |
|---|
public void cancelled(Connection connection)
Connection was cancelled.
cancelled in interface CompletionHandler<E>
public void failed(Connection connection,
Throwable throwable)
Connection was failed.
failed in interface CompletionHandler<E>throwable - error, which occurred during I/O operation execution
public void completed(Connection connection,
E result)
Connection was completed.
completed in interface CompletionHandler<E>result - the I/O operation result
public void updated(Connection connection,
E result)
updated in interface CompletionHandler<E>result - the current result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||