Class BinaryMemcacheResponseEncoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToMessageEncoder<Object>
com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObjectEncoder<M>
com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheEncoder<BinaryMemcacheResponse>
com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheResponseEncoder
- All Implemented Interfaces:
ChannelHandler
,ChannelOutboundHandler
public class BinaryMemcacheResponseEncoder extends AbstractBinaryMemcacheEncoder<BinaryMemcacheResponse>
The encoder which takes care of encoding the response headers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Constructor Summary
Constructors Constructor Description BinaryMemcacheResponseEncoder()
-
Method Summary
Modifier and Type Method Description protected void
encodeHeader(ByteBuf buf, BinaryMemcacheResponse msg)
Encode the header.Methods inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheEncoder
encodeMessage
Methods inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObjectEncoder
acceptOutboundMessage, encode
Methods inherited from class io.netty.handler.codec.MessageToMessageEncoder
write
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Constructor Details
-
BinaryMemcacheResponseEncoder
public BinaryMemcacheResponseEncoder()
-
-
Method Details
-
encodeHeader
Description copied from class:AbstractBinaryMemcacheEncoder
Encode the header.This methods needs to be implemented by a sub class because the header is different for both requests and responses.
- Specified by:
encodeHeader
in classAbstractBinaryMemcacheEncoder<BinaryMemcacheResponse>
- Parameters:
buf
- theByteBuf
to write into.msg
- the message to encode.
-