Codota Logo
ChannelHandlerContext.disconnect
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ChannelHandlerContext
private void myMethod () {
ChannelHandlerContext c =
  • Codota IconMockito mockito;mockito.mock(ChannelHandlerContext.class)
  • Smart code suggestions by Codota
}
origin: netty/netty

/**
 * Calls {@link ChannelHandlerContext#disconnect(ChannelPromise)} to forward
 * to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
 *
 * Sub-classes may override this method to change behavior.
 */
@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise)
    throws Exception {
  ctx.disconnect(promise);
}
origin: netty/netty

/**
 * Calls {@link ChannelHandlerContext#disconnect(ChannelPromise)} to forward
 * to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
 *
 * Sub-classes may override this method to change behavior.
 */
@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise)
    throws Exception {
  ctx.disconnect(promise);
}
origin: netty/netty

@Override
public ChannelFuture disconnect(ChannelPromise promise) {
  return ctx.disconnect(promise);
}
origin: netty/netty

@Override
public ChannelFuture disconnect() {
  return ctx.disconnect();
}
origin: redisson/redisson

/**
 * Calls {@link ChannelHandlerContext#disconnect(ChannelPromise)} to forward
 * to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
 *
 * Sub-classes may override this method to change behavior.
 */
@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise)
    throws Exception {
  ctx.disconnect(promise);
}
origin: redisson/redisson

/**
 * Calls {@link ChannelHandlerContext#disconnect(ChannelPromise)} to forward
 * to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
 *
 * Sub-classes may override this method to change behavior.
 */
@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise)
    throws Exception {
  ctx.disconnect(promise);
}
origin: eclipse-vertx/vert.x

@Override
public ChannelFuture disconnect(ChannelPromise promise) {
 return ctx.disconnect(promise);
}
origin: redisson/redisson

@Override
public ChannelFuture disconnect() {
  return ctx.disconnect();
}
origin: redisson/redisson

@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  ctx.disconnect(promise);
}
origin: eclipse-vertx/vert.x

@Override
public ChannelFuture disconnect() {
 return ctx.disconnect();
}
origin: redisson/redisson

@Override
public ChannelFuture disconnect(ChannelPromise promise) {
  return ctx.disconnect(promise);
}
origin: wildfly/wildfly

/**
 * Calls {@link ChannelHandlerContext#disconnect(ChannelPromise)} to forward
 * to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
 *
 * Sub-classes may override this method to change behavior.
 */
@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise)
    throws Exception {
  ctx.disconnect(promise);
}
origin: wildfly/wildfly

/**
 * Calls {@link ChannelHandlerContext#disconnect(ChannelPromise)} to forward
 * to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
 *
 * Sub-classes may override this method to change behavior.
 */
@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise)
    throws Exception {
  ctx.disconnect(promise);
}
origin: wildfly/wildfly

@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  ctx.disconnect(promise);
}
origin: wildfly/wildfly

@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  ctx.disconnect(promise);
}
origin: alibaba/fescar

private void closeChannelHandlerContext(ChannelHandlerContext ctx) {
  if (LOGGER.isInfoEnabled()) {
    LOGGER.info("closeChannelHandlerContext channel:" + ctx.channel());
  }
  ctx.disconnect();
  ctx.close();
}
origin: redisson/redisson

@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  // Try to flush one last time if flushes are pending before disconnect the channel.
  resetReadAndFlushIfNeeded(ctx);
  ctx.disconnect(promise);
}
origin: wildfly/wildfly

@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  // Try to flush one last time if flushes are pending before disconnect the channel.
  resetReadAndFlushIfNeeded(ctx);
  ctx.disconnect(promise);
}
origin: redisson/redisson

@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  if (logger.isEnabled(internalLevel)) {
    logger.log(internalLevel, format(ctx, "DISCONNECT"));
  }
  ctx.disconnect(promise);
}
origin: wildfly/wildfly

@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  if (logger.isEnabled(internalLevel)) {
    logger.log(internalLevel, format(ctx, "DISCONNECT"));
  }
  ctx.disconnect(promise);
}
io.netty.channelChannelHandlerContextdisconnect

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,
  • fireChannelInactive,
  • voidPromise,
  • read,
  • fireChannelReadComplete,
  • name,
  • attr

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Collectors (java.util.stream)
  • ImageIO (javax.imageio)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now