public class BinaryMemcacheRequestDecoder extends AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
The decoder part which takes care of decoding the request-specific headers.
ByteToMessageDecoder.Cumulator
ChannelHandler.Sharable
DEFAULT_MAX_CHUNK_SIZE
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
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(ByteBuf in)
Decode and return the parsed
BinaryMemcacheMessage . |
channelInactive, decode, resetDecoder
actualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
handlerAdded, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded
public BinaryMemcacheRequestDecoder()
public BinaryMemcacheRequestDecoder(int chunkSize)
protected BinaryMemcacheRequest decodeHeader(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>
Copyright © 2016 Couchbase, Inc.. All rights reserved.