public class ProtobufLengthDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
io.netty.handler.codec.protobuf.ProtobufVarint32FrameDecoder
that avoids bytebuf copy.
See the documentation there.Constructor and Description |
---|
ProtobufLengthDecoder(BufferAllocator allocator,
OutOfMemoryHandler outOfMemoryHandler) |
Modifier and Type | Method and Description |
---|---|
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
actualReadableBytes, callDecode, channelInactive, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
public ProtobufLengthDecoder(BufferAllocator allocator, OutOfMemoryHandler outOfMemoryHandler)
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.ByteToMessageDecoder
Exception
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelReadComplete
in interface io.netty.channel.ChannelInboundHandler
channelReadComplete
in class io.netty.handler.codec.ByteToMessageDecoder
Exception
Copyright © 1970 The Apache Software Foundation. All rights reserved.