@UnstableApi public class BinaryMemcacheRequestDecoder extends AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
ByteToMessageDecoder.CumulatorChannelHandler.SharableDEFAULT_MAX_CHUNK_SIZECOMPOSITE_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, resetDecoderactualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAddedpublic 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.