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.
|
encodeMessageacceptOutboundMessage, encodewritebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedprotected void encodeHeader(ByteBuf buf, BinaryMemcacheRequest msg)
AbstractBinaryMemcacheEncoderEncode 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 © 2016 Couchbase, Inc.. All rights reserved.