@UnstableApi public abstract class AbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage> extends AbstractMemcacheObjectEncoder<M>
MessageToByteEncoder
that encodes binary memcache messages into bytes.ChannelHandler.Sharable
构造器和说明 |
---|
AbstractBinaryMemcacheEncoder() |
限定符和类型 | 方法和说明 |
---|---|
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, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerAdded, handlerRemoved
protected ByteBuf encodeMessage(ChannelHandlerContext ctx, M msg)
AbstractMemcacheObjectEncoder
MemcacheMessage
and encode it into a writable ByteBuf
.encodeMessage
在类中 AbstractMemcacheObjectEncoder<M extends BinaryMemcacheMessage>
ctx
- the channel handler context.msg
- the message to encode.ByteBuf
representation of the message.