@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (State.ChannelSubscribed == state) { super.channelInactive(ctx); } else { state = State.Inactive; } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { super.channelInactive(ctx); LOGGER.info("channel inactive for ClientProxyHandler at :[{}]",ctx.channel()); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { destroy(); super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { destroy(); super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { logger.trace(format(ctx, "INACTIVE")); super.channelInactive(ctx); }
@Override public void channelInactive(final ChannelHandlerContext ctx) throws Exception { if (task != null) { task.close(); } super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { updatePromise(ctx, "set as inactive"); super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { destroy(); super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { destroy(); super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { InetSocketAddress sa = (InetSocketAddress) ctx.channel().localAddress(); MetricsCollector.getCollector(sa.getPort()).getChannels().decrementAndGet(); super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (edgeProxy != null) { LOG.debug("Origin channel inactive. channel-info={}", ChannelUtils.channelInfoForLogging(ctx.channel())); OriginConnectException ex = new OriginConnectException("Origin server inactive", RESET_CONNECTION); edgeProxy.errorFromOrigin(ex); } super.channelInactive(ctx); ctx.close(); }
@Override public void channelInactive(final ChannelHandlerContext ctx) throws Exception { synchronized (this) { if (active) { listenerExecutor.execute(() -> listener.connectionDestroyed(channelId(ctx.channel()))); active = false; } } super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { super.channelInactive(ctx); server.getChannelGroup().remove(ctx.channel()); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { final String remoteAddress = RemotingHelper.parseChannelRemoteAddr(ctx.channel()); log.info("NETTY SERVER PIPELINE: channelInactive, the channel[{}]", remoteAddress); super.channelInactive(ctx); if (NettyRemotingServer.this.channelEventListener != null) { NettyRemotingServer.this.putNettyEvent(new NettyEvent(NettyEventType.CLOSE, remoteAddress, ctx.channel())); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { while (true) { QueueCommandHolder command = queue.poll(); if (command == null) { break; } command.getChannelPromise().tryFailure( new WriteRedisConnectionException("Channel has been closed! Can't write command: " + LogHelper.toString(command.getCommand()) + " to channel: " + ctx.channel())); } super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { while (true) { QueueCommandHolder command = queue.poll(); if (command == null) { break; } command.getChannelPromise().tryFailure( new WriteRedisConnectionException("Channel has been closed! Can't write command: " + LogHelper.toString(command.getCommand()) + " to channel: " + ctx.channel())); } super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (edgeProxy != null) { LOG.debug("Origin channel inactive. channel-info={}", ChannelUtils.channelInfoForLogging(ctx.channel())); OriginConnectException ex = new OriginConnectException("Origin server inactive", RESET_CONNECTION); edgeProxy.errorFromOrigin(ex); } super.channelInactive(ctx); ctx.close(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { com.github.ltsopensource.remoting.Channel channel = new NettyChannel(ctx); final String remoteAddress = RemotingHelper.parseChannelRemoteAddr(channel); LOGGER.info("SERVER: channelInactive, the channel[{}]", remoteAddress); super.channelInactive(ctx); if (channelEventListener != null) { putRemotingEvent(new RemotingEvent(RemotingEventType.CLOSE, remoteAddress, channel)); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { clientResources.eventBus().publish(new DisconnectedEvent(local(ctx), remote(ctx))); super.channelInactive(ctx); } });
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { com.github.ltsopensource.remoting.Channel channel = new NettyChannel(ctx); final String remoteAddress = RemotingHelper.parseChannelRemoteAddr(channel); LOGGER.info("SERVER: channelInactive, the channel[{}]", remoteAddress); super.channelInactive(ctx); if (channelEventListener != null) { putRemotingEvent(new RemotingEvent(RemotingEventType.CLOSE, remoteAddress, channel)); } }