public class BinaryMemcacheResponseDecoder extends AbstractBinaryMemcacheDecoder<BinaryMemcacheResponse>
The decoder which takes care of decoding the response headers.
ByteToMessageDecoder.CumulatorChannelHandler.SharableDEFAULT_MAX_CHUNK_SIZECOMPOSITE_CUMULATOR, MERGE_CUMULATOR| Constructor and Description |
|---|
BinaryMemcacheResponseDecoder() |
BinaryMemcacheResponseDecoder(int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
protected BinaryMemcacheResponse |
buildInvalidMessage()
Helper method to create a upstream message when the incoming parsing did fail.
|
protected BinaryMemcacheResponse |
decodeHeader(ByteBuf in)
Decode and return the parsed
BinaryMemcacheMessage. |
channelInactive, decode, resetDecoderactualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecodechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAddedpublic BinaryMemcacheResponseDecoder()
public BinaryMemcacheResponseDecoder(int chunkSize)
protected BinaryMemcacheResponse decodeHeader(ByteBuf in)
AbstractBinaryMemcacheDecoderDecode and return the parsed BinaryMemcacheMessage.
decodeHeader in class AbstractBinaryMemcacheDecoder<BinaryMemcacheResponse>in - the incoming buffer.protected BinaryMemcacheResponse buildInvalidMessage()
AbstractBinaryMemcacheDecoderHelper method to create a upstream message when the incoming parsing did fail.
buildInvalidMessage in class AbstractBinaryMemcacheDecoder<BinaryMemcacheResponse>Copyright © 2016 Couchbase, Inc.. All rights reserved.