public abstract class AbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage> extends AbstractMemcacheObjectEncoder<M>
MessageToByteEncoder
that encodes binary memache messages into bytes.ChannelHandler.Sharable, ChannelHandler.Skip
Constructor and Description |
---|
AbstractBinaryMemcacheEncoder() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
encodeHeader(ByteBuf buf,
M msg)
Encode the header.
|
protected ByteBuf |
encodeMessage(ChannelHandlerContext ctx,
M msg)
Take the given
MemcacheMessage and encode it into a writable ByteBuf . |
acceptOutboundMessage, encode
write
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered
protected ByteBuf encodeMessage(ChannelHandlerContext ctx, M msg)
AbstractMemcacheObjectEncoder
MemcacheMessage
and encode it into a writable ByteBuf
.encodeMessage
in class AbstractMemcacheObjectEncoder<M extends BinaryMemcacheMessage>
ctx
- the channel handler context.msg
- the message to encode.ByteBuf
representation of the message.Copyright © 2008–2015 The Netty Project. All rights reserved.