@UnstableApi public class BinaryMemcacheRequestDecoder extends AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
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方法创建上游消息。
|
protected BinaryMemcacheRequest |
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 BinaryMemcacheRequestDecoder()
public BinaryMemcacheRequestDecoder(int chunkSize)
protected BinaryMemcacheRequest decodeHeader(ByteBuf in)
AbstractBinaryMemcacheDecoder
BinaryMemcacheMessage
。
decodeHeader
在课堂上
AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
in
- 传入的缓冲区。
protected BinaryMemcacheRequest buildInvalidMessage()
AbstractBinaryMemcacheDecoder
buildInvalidMessage
在课堂上
AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
Copyright © 2008–2018 The Netty Project. All rights reserved.