@UnstableApi public abstract class AbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage> extends AbstractMemcacheObjectEncoder<M>
MessageToByteEncoder
。
ChannelHandler.Sharable
Constructor and Description |
---|
AbstractBinaryMemcacheEncoder() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
encodeHeader(ByteBuf buf, M msg)
编码标题。
|
protected ByteBuf |
encodeMessage(ChannelHandlerContext ctx, M msg)
取给定的 MemcacheMessage 并将其编码为可写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
并将其编码为可写ByteBuf
。
encodeMessage
在课程
AbstractMemcacheObjectEncoder<M extends BinaryMemcacheMessage>
ctx
- 通道处理程序上下文。
msg
- 要编码的消息。
ByteBuf
表示。
Copyright © 2008–2018 The Netty Project. All rights reserved.