public class BinaryMemcacheRequestEncoder extends AbstractBinaryMemcacheEncoder<BinaryMemcacheRequest>
The encoder part which takes care of encoding the request headers.
ChannelHandler.Sharable
Constructor and Description |
---|
BinaryMemcacheRequestEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
encodeHeader(ByteBuf buf,
BinaryMemcacheRequest msg)
Encode the header.
|
encodeMessage
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 void encodeHeader(ByteBuf buf, BinaryMemcacheRequest msg)
AbstractBinaryMemcacheEncoder
Encode the header.
This methods needs to be implemented by a sub class because the header is different for both requests and responses.encodeHeader
in class AbstractBinaryMemcacheEncoder<BinaryMemcacheRequest>
buf
- the ByteBuf
to write into.msg
- the message to encode.Copyright © 2017 Couchbase, Inc.. All rights reserved.