@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { super.channelClosed(ctx, e); //To change body of overridden methods use File | Settings | File Templates. } }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // Clean-up the previous decoder if not cleaned up correctly. finishDecode(); super.channelClosed(ctx, e); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { LOG.info("Connection to {} has been closed, channel = {}", client.getRemoteAddr(), e.getChannel()); super.channelClosed(ctx, e); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { super.channelClosed(ctx, e); LOG.info("Connection channelClosed {}", e.getChannel().getRemoteAddress()); MessageDecoder.removeTransmitHistogram(e.getChannel()); }
@Override public void channelClosed( ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { LOG.info("Connection to {} disconnected.", e.getChannel().getRemoteAddress()); super.channelClosed(ctx, e); e.getChannel().close(); allChannels.remove(e.getChannel()); }
channelOpen(ctx, evt); } else { channelClosed(ctx, evt);
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { if (requestSender.isClosed()) return; Channel channel = ctx.getChannel(); channelManager.removeAll(channel); try { super.channelClosed(ctx, e); } catch (Exception ex) { LOGGER.trace("super.channelClosed", ex); } Object attribute = Channels.getAttribute(channel); LOGGER.debug("Channel Closed: {} with attribute {}", channel, attribute); if (attribute instanceof Callback) { Callback callback = (Callback) attribute; Channels.setAttribute(channel, callback.future()); callback.call(); } else if (attribute instanceof NettyResponseFuture<?>) { NettyResponseFuture<?> future = (NettyResponseFuture<?>) attribute; future.touch(); if (!config.getIOExceptionFilters().isEmpty() && requestSender.applyIoExceptionFiltersAndReplayRequest(future, CHANNEL_CLOSED_EXCEPTION, channel)) return; protocol.onClose(future); requestSender.handleUnexpectedClosedChannel(channel, future); } }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // logger.info("Channel closed"); super.channelClosed(ctx, e); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { currentConnectionCount.decrementAndGet(); super.channelClosed(ctx, e); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { logger.info("Channel {} closed.", e.getChannel()); super.channelClosed(ctx, e); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { if (log.isDebugEnabled()) { log.debug("Connection closed! " + channel.getLocalAddress()); } super.channelClosed(ctx, e); }
@Override public void channelClosed(final ChannelHandlerContext ctx, final ChannelStateEvent evt) throws Exception { s_logger.info("RTSP connection was shut down, closing RTP channels and audio output queue"); synchronized(this) { reset(); } super.channelClosed(ctx, evt); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { LOG.info("Connection to {} has been closed, channel = {}", client.getRemoteAddr(), e.getChannel()); super.channelClosed(ctx, e); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { if(activeTransaction()) { throw new SMTPDisconnectedException("Connection closed during transaction."); } super.channelClosed(ctx, e); }
@Override public void channelClosed(ChannelHandlerContext c, ChannelStateEvent e) throws Exception { // Remove us from the channel group channelGroup.remove(e.getChannel()); super.channelClosed(c, e); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { try (Closeable closeable = ProtocolMDCContext.from(protocol, ctx)) { ProtocolSession session = (ProtocolSession) ctx.getAttachment(); LOGGER.info("Connection closed for {}", session.getRemoteAddress().getAddress().getHostAddress()); cleanup(ctx); super.channelClosed(ctx, e); } }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { try (Closeable closeable = ProtocolMDCContext.from(protocol, ctx)) { ProtocolSession session = (ProtocolSession) ctx.getAttachment(); LOGGER.info("Connection closed for {}", session.getRemoteAddress().getAddress().getHostAddress()); cleanup(ctx); super.channelClosed(ctx, e); } }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { super.channelClosed(ctx, e); System.out.println(this.id + ctx.getChannel() + " -> sent: " + this.getWrittenBytes() + "b, recv: " + this.getReadBytes() + "b"); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { try (Closeable closeable = ManageSieveMDCContext.from(ctx, attributes)) { InetSocketAddress address = (InetSocketAddress) ctx.getChannel().getRemoteAddress(); logger.info("Connection closed for {}", address.getAddress().getHostAddress()); attributes.remove(ctx.getChannel()); super.channelClosed(ctx, e); } }
@Override public void channelClosed( ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { LOG.info("Connection to {} disconnected.", e.getChannel().getRemoteAddress()); super.channelClosed(ctx, e); e.getChannel().close(); allChannels.remove(e.getChannel()); }