@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, encodewritebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedprotected 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.