public final class BinaryMemcacheClientCodec extends CombinedChannelDuplexHandler<com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheClientCodec.Decoder,com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheClientCodec.Encoder>
Use this codec if you want to implement a memcache client that speaks the binary protocol. It
combines both the BinaryMemcacheResponseDecoder
and the BinaryMemcacheRequestEncoder
.
ChannelHandler.Sharable
Constructor and Description |
---|
BinaryMemcacheClientCodec()
Create a new
BinaryMemcacheClientCodec with the default settings applied. |
BinaryMemcacheClientCodec(int decodeChunkSize)
Create a new
BinaryMemcacheClientCodec and set a custom chunk size. |
BinaryMemcacheClientCodec(int decodeChunkSize,
boolean failOnMissingResponse)
Create a new
BinaryMemcacheClientCodec with custom settings. |
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, inboundHandler, init, outboundHandler, read, removeInboundHandler, removeOutboundHandler, userEventTriggered, write
ensureNotSharable, isSharable
public BinaryMemcacheClientCodec()
BinaryMemcacheClientCodec
with the default settings applied.public BinaryMemcacheClientCodec(int decodeChunkSize)
BinaryMemcacheClientCodec
and set a custom chunk size.decodeChunkSize
- the maximum chunk size.public BinaryMemcacheClientCodec(int decodeChunkSize, boolean failOnMissingResponse)
BinaryMemcacheClientCodec
with custom settings.decodeChunkSize
- the maximum chunk size.failOnMissingResponse
- report if after close there are outstanding requests.Copyright © 2021 Couchbase, Inc.. All rights reserved.