public final class MemcachedFrameDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
Constructor and Description |
---|
MemcachedFrameDecoder(SessionStatus status,
int maxFrameLength)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static int |
bytesBefore(io.netty.buffer.ByteBuf buf,
io.netty.buffer.ByteBuf pattern) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
List<Object> out) |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
public MemcachedFrameDecoder(SessionStatus status, int maxFrameLength)
status
- session status instance for holding state of the sessionmaxFrameLength
- the maximum length of the decoded frame. A TooLongFrameException
is thrown if
frame length is exceededprotected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.ByteToMessageDecoder
Exception
public static int bytesBefore(io.netty.buffer.ByteBuf buf, io.netty.buffer.ByteBuf pattern)
Copyright © GigaSpaces.