Class BinaryMemcacheClientCodec
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.netty.channel.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>
com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheClientCodec
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
,ChannelOutboundHandler
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>
The client codec that combines the proper encoder and decoder.
Use this codec if you want to implement a memcache client that speaks the binary protocol. It
combines both the BinaryMemcacheResponseDecoder
and the BinaryMemcacheRequestEncoder
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Constructor Summary
Constructors Constructor Description BinaryMemcacheClientCodec()
Create a newBinaryMemcacheClientCodec
with the default settings applied.BinaryMemcacheClientCodec(int decodeChunkSize)
Create a newBinaryMemcacheClientCodec
and set a custom chunk size.BinaryMemcacheClientCodec(int decodeChunkSize, boolean failOnMissingResponse)
Create a newBinaryMemcacheClientCodec
with custom settings. -
Method Summary
Methods inherited from class io.netty.channel.CombinedChannelDuplexHandler
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, inboundHandler, init, outboundHandler, read, removeInboundHandler, removeOutboundHandler, userEventTriggered, write
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
BinaryMemcacheClientCodec
public BinaryMemcacheClientCodec()Create a newBinaryMemcacheClientCodec
with the default settings applied. -
BinaryMemcacheClientCodec
public BinaryMemcacheClientCodec(int decodeChunkSize)Create a newBinaryMemcacheClientCodec
and set a custom chunk size.- Parameters:
decodeChunkSize
- the maximum chunk size.
-
BinaryMemcacheClientCodec
public BinaryMemcacheClientCodec(int decodeChunkSize, boolean failOnMissingResponse)Create a newBinaryMemcacheClientCodec
with custom settings.- Parameters:
decodeChunkSize
- the maximum chunk size.failOnMissingResponse
- report if after close there are outstanding requests.
-