@UnstableApi public class BinaryMemcacheResponseDecoder extends AbstractBinaryMemcacheDecoder<BinaryMemcacheResponse>
ByteToMessageDecoder.Cumulator
ChannelHandler.Sharable
DEFAULT_MAX_CHUNK_SIZE
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
Constructor and Description |
---|
BinaryMemcacheResponseDecoder() |
BinaryMemcacheResponseDecoder(int chunkSize) |
Modifier and Type | Method and Description |
---|---|
protected BinaryMemcacheResponse |
buildInvalidMessage()
当传入分析失败时,Helper方法创建上游消息。
|
protected BinaryMemcacheResponse |
decodeHeader(ByteBuf in)
解码并返回解析的 BinaryMemcacheMessage 。
|
channelInactive, decode, resetDecoder
actualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded
public BinaryMemcacheResponseDecoder()
public BinaryMemcacheResponseDecoder(int chunkSize)
protected BinaryMemcacheResponse decodeHeader(ByteBuf in)
AbstractBinaryMemcacheDecoder
BinaryMemcacheMessage
。
decodeHeader
在课程
AbstractBinaryMemcacheDecoder<BinaryMemcacheResponse>
in
- 传入缓冲区。
protected BinaryMemcacheResponse buildInvalidMessage()
AbstractBinaryMemcacheDecoder
buildInvalidMessage
在课堂上
AbstractBinaryMemcacheDecoder<BinaryMemcacheResponse>
Copyright © 2008–2018 The Netty Project. All rights reserved.