Class AbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage >
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToMessageEncoder<Object>
io.netty.handler.codec.memcache.AbstractMemcacheObjectEncoder<M>
io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheEncoder<M>
- All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler
- Direct Known Subclasses:
BinaryMemcacheRequestEncoder, BinaryMemcacheResponseEncoder
@UnstableApi
public abstract class AbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage>
extends AbstractMemcacheObjectEncoder<M>
A
MessageToByteEncoder that encodes binary memcache messages into bytes.-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidencodeHeader(ByteBuf buf, M msg) Encode the header.protected ByteBufencodeMessage(ChannelHandlerContext ctx, M msg) Take the givenMemcacheMessageand encode it into a writableByteBuf.Methods inherited from class AbstractMemcacheObjectEncoder
acceptOutboundMessage, encodeMethods inherited from class MessageToMessageEncoder
writeMethods inherited from class ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Constructor Details
-
AbstractBinaryMemcacheEncoder
public AbstractBinaryMemcacheEncoder()
-
-
Method Details
-
encodeMessage
Description copied from class:AbstractMemcacheObjectEncoderTake the givenMemcacheMessageand encode it into a writableByteBuf.- Specified by:
encodeMessagein classAbstractMemcacheObjectEncoder<M extends BinaryMemcacheMessage>- Parameters:
ctx- the channel handler context.msg- the message to encode.- Returns:
- the
ByteBufrepresentation of the message.
-
encodeHeader
-