Tabnine Logo
ChannelHandlerContext.fireChannelInactive
Code IndexAdd Tabnine to your IDE (free)

How to use
fireChannelInactive
method
in
io.netty.channel.ChannelHandlerContext

Best Java code snippets using io.netty.channel.ChannelHandlerContext.fireChannelInactive (Showing top 20 results out of 567)

origin: netty/netty

/**
 * 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();
}
origin: netty/netty

@Override
public ChannelHandlerContext fireChannelInactive() {
  ctx.fireChannelInactive();
  return this;
}
origin: netty/netty

@Override
public void channelInactive(ChannelHandlerContext ctx) {
  ctx.fireChannelInactive();
}
origin: eclipse-vertx/vert.x

@Override
public ChannelHandlerContext fireChannelInactive() {
 ctx.fireChannelInactive();
 return this;
}
origin: redisson/redisson

@Override
public ChannelHandlerContext fireChannelInactive() {
  ctx.fireChannelInactive();
  return this;
}
origin: redisson/redisson

/**
 * 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();
}
origin: redisson/redisson

@Override
public void channelInactive(ChannelHandlerContext ctx) {
  ctx.fireChannelInactive();
}
origin: redisson/redisson

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  doFlush(ctx);
  ctx.fireChannelInactive();
}
origin: redisson/redisson

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  destroy();
  ctx.fireChannelInactive();
}
origin: weibocom/motan

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  LoggerUtil.info("NettyChannelHandler channelInactive: remote={} local={}", ctx.channel().remoteAddress(), ctx.channel().localAddress());
  ctx.fireChannelInactive();
}
origin: wildfly/wildfly

  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    // Fail promise if Channel was closed
    promise.tryFailure(CLOSED_CHANNEL_EXCEPTION);
    ctx.fireChannelInactive();
  }
});
origin: wildfly/wildfly

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  destroy();
  ctx.fireChannelInactive();
}
origin: wildfly/wildfly

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  doFlush(ctx);
  ctx.fireChannelInactive();
}
origin: apache/incubator-shardingsphere

  @Override
  @SneakyThrows
  public final void channelInactive(final ChannelHandlerContext context) {
    context.fireChannelInactive();
    backendConnection.close(true);
    ChannelThreadExecutorGroup.getInstance().unregister(context.channel().id());
  }
}
origin: apache/incubator-shardingsphere

  @Override
  @SneakyThrows
  public final void channelInactive(final ChannelHandlerContext context) {
    context.fireChannelInactive();
    backendConnection.close(true);
    ChannelThreadExecutorGroup.getInstance().unregister(context.channel().id());
  }
}
origin: redisson/redisson

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  if (logger.isEnabled(internalLevel)) {
    logger.log(internalLevel, format(ctx, "INACTIVE"));
  }
  ctx.fireChannelInactive();
}
origin: wildfly/wildfly

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  if (logger.isEnabled(internalLevel)) {
    logger.log(internalLevel, format(ctx, "INACTIVE"));
  }
  ctx.fireChannelInactive();
}
origin: redisson/redisson

@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();
}

origin: redisson/redisson

@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();
}

origin: netty/netty

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();
    }
  }
}
io.netty.channelChannelHandlerContextfireChannelInactive

Popular methods of ChannelHandlerContext

  • channel
    Return the Channel which is bound to the ChannelHandlerContext.
  • close
  • writeAndFlush
  • write
  • flush
  • fireChannelRead
  • pipeline
    Return the assigned ChannelPipeline
  • alloc
    Return the assigned ByteBufAllocator which will be used to allocate ByteBufs.
  • executor
    Returns the EventExecutor which is used to execute an arbitrary task.
  • fireExceptionCaught
  • fireUserEventTriggered
  • newPromise
  • fireUserEventTriggered,
  • newPromise,
  • fireChannelActive,
  • voidPromise,
  • read,
  • fireChannelReadComplete,
  • name,
  • attr,
  • disconnect

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now