|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CallbackHandler
Callback handler, which works like adapter for Processor, where
each IOEvent could be processed in separate method.
Processor,
IOEvent| Method Summary | |
|---|---|
void |
onAccept(Context context)
This method is called when IOEvent.ACCEPTED event occured on
Connection. |
void |
onClose(Context context)
This method is called when IOEvent.CLOSED event occured on
Connection. |
void |
onConnect(Context context)
This method is called when IOEvent.CONNECTED event occured on
Connection. |
void |
onRead(Context context)
This method is called when IOEvent.READ event occured on
Connection. |
void |
onWrite(Context context)
This method is called when IOEvent.WRITE event occured on
Connection. |
| Methods inherited from interface com.sun.grizzly.Processor |
|---|
afterProcess, beforeProcess, context, isInterested, process, setInterested |
| Method Detail |
|---|
void onAccept(Context context)
throws IOException
IOEvent.ACCEPTED event occured on
Connection.
context - an object containing information about the event
processing.
IOException
void onConnect(Context context)
throws IOException
IOEvent.CONNECTED event occured on
Connection.
context - an object containing information about the event
processing.
IOException
void onRead(Context context)
throws IOException
IOEvent.READ event occured on
Connection.
context - an object containing information about the event
processing.
IOException
void onWrite(Context context)
throws IOException
IOEvent.WRITE event occured on
Connection.
context - an object containing information about the event
processing.
IOException
void onClose(Context context)
throws IOException
IOEvent.CLOSED event occured on
Connection.
context - an object containing information about the event
processing.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||