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

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

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

  • 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#fireChannelReadComplete()} to forward
 * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}.
 *
 * Sub-classes may override this method to change behavior.
 */
@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  ctx.fireChannelReadComplete();
}
origin: netty/netty

@Override
public ChannelHandlerContext fireChannelReadComplete() {
  ctx.fireChannelReadComplete();
  return this;
}
origin: eclipse-vertx/vert.x

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

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

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

@Override
public void channelReadComplete(ChannelHandlerContext ctx) {
  ctx.fireChannelReadComplete();
  readIfIsAutoRead();
}
origin: redisson/redisson

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  // This may be the last event in the read loop, so flush now!
  resetReadAndFlushIfNeeded(ctx);
  ctx.fireChannelReadComplete();
}
origin: redisson/redisson

@Override
public void channelReadComplete(ChannelHandlerContext ctx) {
  ctx.fireChannelReadComplete();
  readIfIsAutoRead();
}
origin: redisson/redisson

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  if ((readerIdleTimeNanos > 0 || allIdleTimeNanos > 0) && reading) {
    lastReadTime = ticksInNanos();
    reading = false;
  }
  ctx.fireChannelReadComplete();
}
origin: netty/netty

@Override
public final void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
  if (decodeState == STATE_CALLING_CHILD_DECODE) {
    decodeState = STATE_HANDLER_REMOVED_PENDING;
    return;
  }
  ByteBuf buf = cumulation;
  if (buf != null) {
    // Directly set this to null so we are sure we not access it in any other method here anymore.
    cumulation = null;
    int readable = buf.readableBytes();
    if (readable > 0) {
      ByteBuf bytes = buf.readBytes(readable);
      buf.release();
      ctx.fireChannelRead(bytes);
    } else {
      buf.release();
    }
    numReads = 0;
    ctx.fireChannelReadComplete();
  }
  handlerRemoved0(ctx);
}
origin: wildfly/wildfly

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  if ((readerIdleTimeNanos > 0 || allIdleTimeNanos > 0) && reading) {
    lastReadTime = ticksInNanos();
    reading = false;
  }
  ctx.fireChannelReadComplete();
}
origin: wildfly/wildfly

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  ctx.fireChannelReadComplete();
  readIfIsAutoRead();
}
origin: netty/netty

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  // We might need keep reading the channel until the full message is aggregated.
  //
  // See https://github.com/netty/netty/issues/6583
  if (currentMessage != null && !ctx.channel().config().isAutoRead()) {
    ctx.read();
  }
  ctx.fireChannelReadComplete();
}
origin: netty/netty

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  numReads = 0;
  discardSomeReadBytes();
  if (decodeWasNull) {
    decodeWasNull = false;
    if (!ctx.channel().config().isAutoRead()) {
      ctx.read();
    }
  }
  ctx.fireChannelReadComplete();
}
origin: AsyncHttpClient/async-http-client

@Override
public void channelReadComplete(ChannelHandlerContext ctx) {
 if (!isHandledByReactiveStreams(ctx)) {
  ctx.read();
 } else {
  ctx.fireChannelReadComplete();
 }
}
origin: redisson/redisson

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  // We might need keep reading the channel until the full message is aggregated.
  //
  // See https://github.com/netty/netty/issues/6583
  if (currentMessage != null && !ctx.channel().config().isAutoRead()) {
    ctx.read();
  }
  ctx.fireChannelReadComplete();
}
origin: redisson/redisson

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  if (logger.isEnabled(internalLevel)) {
    logger.log(internalLevel, format(ctx, "READ COMPLETE"));
  }
  ctx.fireChannelReadComplete();
}
origin: redisson/redisson

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  // Discard bytes of the cumulation buffer if needed.
  discardSomeReadBytes();
  flushIfNeeded(ctx);
  readIfNeeded(ctx);
  firedChannelRead = false;
  ctx.fireChannelReadComplete();
}
origin: redisson/redisson

@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  numReads = 0;
  discardSomeReadBytes();
  if (decodeWasNull) {
    decodeWasNull = false;
    if (!ctx.channel().config().isAutoRead()) {
      ctx.read();
    }
  }
  ctx.fireChannelReadComplete();
}
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.channelChannelHandlerContextfireChannelReadComplete

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,
  • name,
  • attr,
  • disconnect

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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