public class BinaryMemcacheRequestDecoder extends AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
ByteToMessageDecoder.Cumulator
ChannelHandler.Sharable, ChannelHandler.Skip
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, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setSingleDecode
bind, channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, isSharable, read, userEventTriggered, write
public BinaryMemcacheRequestDecoder()
public BinaryMemcacheRequestDecoder(int chunkSize)
protected BinaryMemcacheRequest decodeHeader(ByteBuf in)
AbstractBinaryMemcacheDecoder
BinaryMemcacheMessage
.decodeHeader
in class AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
in
- the incoming buffer.protected BinaryMemcacheRequest buildInvalidMessage()
AbstractBinaryMemcacheDecoder
buildInvalidMessage
in class AbstractBinaryMemcacheDecoder<BinaryMemcacheRequest>
Copyright © 2008–2015 The Netty Project. All rights reserved.