73747576777879808182
flushEvents(); } } private void flushEvents() { IoEvent e; while ((e = eventQueue.poll()) != null) { fireEvent(e); } }
131132133134135136137
s.getRemoteSession().getProcessor().updateTrafficControl(s); } @Override public void fireFilterClose() { pushEvent(new IoEvent(IoEventType.CLOSE, getSession(), null)); }
136137138139140141142
pushEvent(new IoEvent(IoEventType.CLOSE, getSession(), null)); } @Override public void fireFilterWrite(WriteRequest writeRequest) { pushEvent(new IoEvent(IoEventType.WRITE, getSession(), writeRequest)); }
141142143144145146147
pushEvent(new IoEvent(IoEventType.WRITE, getSession(), writeRequest)); } @Override public void fireExceptionCaught(Throwable cause) { pushEvent(new IoEvent(IoEventType.EXCEPTION_CAUGHT, getSession(), cause)); }
146147148149150151152
pushEvent(new IoEvent(IoEventType.EXCEPTION_CAUGHT, getSession(), cause)); } @Override public void fireMessageSent(WriteRequest request) { pushEvent(new IoEvent(IoEventType.MESSAGE_SENT, getSession(), request)); }
151152153154155156157
pushEvent(new IoEvent(IoEventType.MESSAGE_SENT, getSession(), request)); } @Override public void fireSessionClosed() { pushEvent(new IoEvent(IoEventType.SESSION_CLOSED, getSession(), null)); }
156157158159160161162
pushEvent(new IoEvent(IoEventType.SESSION_CLOSED, getSession(), null)); } @Override public void fireSessionCreated() { pushEvent(new IoEvent(IoEventType.SESSION_CREATED, getSession(), null)); }
161162163164165166167
pushEvent(new IoEvent(IoEventType.SESSION_CREATED, getSession(), null)); } @Override public void fireSessionIdle(IdleStatus status) { pushEvent(new IoEvent(IoEventType.SESSION_IDLE, getSession(), status)); }
166167168169170171172
pushEvent(new IoEvent(IoEventType.SESSION_IDLE, getSession(), status)); } @Override public void fireSessionOpened() { pushEvent(new IoEvent(IoEventType.SESSION_OPENED, getSession(), null)); }
171172173174175176177
pushEvent(new IoEvent(IoEventType.SESSION_OPENED, getSession(), null)); } @Override public void fireMessageReceived(Object message) { pushEvent(new IoEvent(IoEventType.MESSAGE_RECEIVED, getSession(), message)); }