|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Dispatches session events to SessionListener.
Netty provides two default implementations:
| Method Summary | |
void |
fire(Event event)
Fires the specified session event. |
void |
flush()
(Optional operation) Flushes the buffered events. |
int |
getWaitingEventSize()
Returns the number of session events that are still not dispatched to SessionListeners. |
| Method Detail |
public int getWaitingEventSize()
SessionListeners.
public void fire(Event event)
public void flush()
ReadController#processEvent(Event)and
WriteController#processEvent(Event)after the expected I/O
operations have been completed. So you can implement
EventDispatcherto buffer the fireXXX calls and
fire (flush) them here in actually.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||