public class BinaryMemcacheRequestDecoder extends AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
The decoder part which takes care of decoding the request-specific headers.
DEFAULT_MAX_CHUNK_SIZE
Constructor and Description |
---|
BinaryMemcacheRequestDecoder() |
BinaryMemcacheRequestDecoder(int chunkSize) |
Modifier and Type | Method and Description |
---|---|
protected BinaryMemcacheRequest |
buildInvalidMessage()
Helper method to create a upstream message when the incoming parsing did fail.
|
protected BinaryMemcacheRequest |
decodeHeader(io.netty.buffer.ByteBuf in)
Decode and return the parsed
BinaryMemcacheMessage . |
channelInactive, decode, resetDecoder
actualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setSingleDecode
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
public BinaryMemcacheRequestDecoder()
public BinaryMemcacheRequestDecoder(int chunkSize)
protected BinaryMemcacheRequest decodeHeader(io.netty.buffer.ByteBuf in)
AbstractBinaryMemcacheDecoder
Decode and return the parsed BinaryMemcacheMessage
.
decodeHeader
in class AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
in
- the incoming buffer.protected BinaryMemcacheRequest buildInvalidMessage()
AbstractBinaryMemcacheDecoder
Helper method to create a upstream message when the incoming parsing did fail.
buildInvalidMessage
in class AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>