@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { Connection connection = connectionManager.removeAndClose(ctx.channel()); EventBus.post(new ConnectionCloseEvent(connection)); Logs.CONN.info("client disconnected conn={}", connection); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { Connection connection = connectionManager.removeAndClose(ctx.channel()); EventBus.post(new ConnectionCloseEvent(connection)); Logs.CONN.info("client disconnected conn={}", connection); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { int clientNum = STATISTICS.clientNum.decrementAndGet(); connection.close(); EventBus.post(new ConnectionCloseEvent(connection)); LOGGER.info("client disconnect channel={}, clientNum={}", connection, clientNum); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { Connection connection = connectionManager.removeAndClose(ctx.channel()); EventBus.post(new ConnectionCloseEvent(connection)); Logs.CONN.info("client disconnected conn={}", connection); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { Connection connection = connectionManager.removeAndClose(ctx.channel()); EventBus.post(new ConnectionCloseEvent(connection)); Logs.CONN.info("client disconnected conn={}", connection); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { Connection connection = connectionManager.removeAndClose(ctx.channel()); EventBus.post(new ConnectionCloseEvent(connection)); Logs.CONN.info("client disconnected conn={}", connection); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { int clientNum = STATISTICS.clientNum.decrementAndGet(); connection.close(); EventBus.post(new ConnectionCloseEvent(connection)); LOGGER.info("client disconnect channel={}, clientNum={}", connection, clientNum); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { Connection connection = connectionManager.removeAndClose(ctx.channel()); EventBus.post(new ConnectionCloseEvent(connection)); Logs.CONN.info("client disconnected conn={}", connection); } }