|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventDispatcher
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 SessionListener s. |
Method Detail |
---|
int getWaitingEventSize()
SessionListener
s.
void fire(Event event)
void flush()
ReadController#processEvent(Event)
and
WriteController#processEvent(Event)
after the expected I/O
operations have been completed. So you can implement
EventDispatcher
to 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 |