public interface EventDispatcher
SessionListener.
Netty provides two default implementations:
| Modifier and Type | Method and Description |
|---|---|
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. |
int getWaitingEventSize()
SessionListeners.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
EventDispatcherto buffer the fireXXX calls and
fire (flush) them here in actually.Copyright © 2004-2012 Trustin Lee. All Rights Reserved.