/** * Calls {@link ChannelHandlerContext#fireChannelInactive()} to forward * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}. * * Sub-classes may override this method to change behavior. */ @Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { ctx.fireChannelInactive(); }
@Override public ChannelHandlerContext fireChannelInactive() { ctx.fireChannelInactive(); return this; }
@Override public void channelInactive(ChannelHandlerContext ctx) { ctx.fireChannelInactive(); }
@Override public ChannelHandlerContext fireChannelInactive() { ctx.fireChannelInactive(); return this; }
@Override public ChannelHandlerContext fireChannelInactive() { ctx.fireChannelInactive(); return this; }
/** * Calls {@link ChannelHandlerContext#fireChannelInactive()} to forward * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}. * * Sub-classes may override this method to change behavior. */ @Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) { ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { doFlush(ctx); ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { destroy(); ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { LoggerUtil.info("NettyChannelHandler channelInactive: remote={} local={}", ctx.channel().remoteAddress(), ctx.channel().localAddress()); ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { // Fail promise if Channel was closed promise.tryFailure(CLOSED_CHANNEL_EXCEPTION); ctx.fireChannelInactive(); } });
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { destroy(); ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { doFlush(ctx); ctx.fireChannelInactive(); }
@Override @SneakyThrows public final void channelInactive(final ChannelHandlerContext context) { context.fireChannelInactive(); backendConnection.close(true); ChannelThreadExecutorGroup.getInstance().unregister(context.channel().id()); } }
@Override @SneakyThrows public final void channelInactive(final ChannelHandlerContext context) { context.fireChannelInactive(); backendConnection.close(true); ChannelThreadExecutorGroup.getInstance().unregister(context.channel().id()); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (logger.isEnabled(internalLevel)) { logger.log(internalLevel, format(ctx, "INACTIVE")); } ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (logger.isEnabled(internalLevel)) { logger.log(internalLevel, format(ctx, "INACTIVE")); } ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { RedisConnection connection = RedisConnection.getFrom(ctx.channel()); if (connection != null) { connection.fireDisconnected(); if (!connection.isClosed()) { if (connection.isFastReconnect()) { tryReconnect(connection, 1); } else { reconnect(connection, 1); } } } ctx.fireChannelInactive(); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { RedisConnection connection = RedisConnection.getFrom(ctx.channel()); if (connection != null) { connection.fireDisconnected(); if (!connection.isClosed()) { if (connection.isFastReconnect()) { tryReconnect(connection, 1); } else { reconnect(connection, 1); } } } ctx.fireChannelInactive(); }
private void channelInputClosed(ChannelHandlerContext ctx, boolean callChannelInactive) throws Exception { CodecOutputList out = CodecOutputList.newInstance(); try { channelInputClosed(ctx, out); } catch (DecoderException e) { throw e; } catch (Exception e) { throw new DecoderException(e); } finally { try { if (cumulation != null) { cumulation.release(); cumulation = null; } int size = out.size(); fireChannelRead(ctx, out, size); if (size > 0) { // Something was read, call fireChannelReadComplete() ctx.fireChannelReadComplete(); } if (callChannelInactive) { ctx.fireChannelInactive(); } } finally { // Recycle in all cases out.recycle(); } } }