@Override public void sessionClosed(final IoSession session) throws Exception { this.m_ioHandler1.sessionClosed(session); this.m_ioHandler2.sessionClosed(session); }
@Override public void sessionCreated(final IoSession session) throws Exception { this.m_ioHandler1.sessionCreated(session); this.m_ioHandler2.sessionCreated(session); }
@Override public void sessionIdle(final IoSession session, final IdleStatus status) throws Exception { this.m_ioHandler1.sessionIdle(session, status); this.m_ioHandler2.sessionIdle(session, status); }
@Override public void messageSent(final IoSession session, final Object message) throws Exception { m_log.debug("Sent message..."); final IoHandler handler = getHandlerForMessage(message); if (handler != null) { handler.messageSent(session, message); } }
@Override public void messageReceived(final IoSession session, final Object message) throws Exception { m_log.debug("Received message..."); final IoHandler handler = getHandlerForMessage(message); if (handler != null) { handler.messageReceived(session, message); } }
@Override public void exceptionCaught(final IoSession session, final Throwable cause) throws Exception { m_log.debug("Caught exception", cause); m_log.debug("Cause trace: "+ThreadUtils.dumpStack(cause.getCause())); this.m_ioHandler1.exceptionCaught(session, cause); this.m_ioHandler2.exceptionCaught(session, cause); }
@Override public void sessionOpened(final IoSession session) throws Exception { this.m_ioHandler1.sessionOpened(session); this.m_ioHandler2.sessionOpened(session); }
public void messageSent(NextFilter nextFilter, IoSession session, Object message) throws Exception { try { session.getHandler().messageSent(session, message); } finally { ByteBufferUtil.releaseIfPossible(message); } }
public void messageReceived(NextFilter nextFilter, IoSession session, Object message) throws Exception { try { session.getHandler().messageReceived(session, message); } finally { ByteBufferUtil.releaseIfPossible(message); } }
public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) throws Exception { session.getHandler().exceptionCaught(session, cause); }
public void sessionOpened(NextFilter nextFilter, IoSession session) throws Exception { try { session.getHandler().sessionOpened(session); } finally { // Notify the related ConnectFuture // if the session is created from SocketConnector. ConnectFuture future = (ConnectFuture) session .removeAttribute(CONNECT_FUTURE); if (future != null) { future.setSession(session); } } }
public void sessionCreated(NextFilter nextFilter, IoSession session) throws Exception { session.getHandler().sessionCreated(session); }
public void sessionClosed(NextFilter nextFilter, IoSession session) throws Exception { try { session.getHandler().sessionClosed(session); } finally { // Remove all filters. session.getFilterChain().clear(); } }
public void sessionIdle(NextFilter nextFilter, IoSession session, IdleStatus status) throws Exception { session.getHandler().sessionIdle(session, status); }