Class BinaryMemcacheObjectAggregator
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.MessageToMessageDecoder<MemcacheObject>
com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObjectAggregator
com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheObjectAggregator
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
public class BinaryMemcacheObjectAggregator extends AbstractMemcacheObjectAggregator
An object aggregator for the memcache binary protocol.
It aggregates
BinaryMemcacheMessage
s and MemcacheContent
into FullBinaryMemcacheRequest
s
or FullBinaryMemcacheResponse
s.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
Fields inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObjectAggregator
ctx, currentMessage, DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS
-
Constructor Summary
Constructors Constructor Description BinaryMemcacheObjectAggregator(int maxContentLength)
-
Method Summary
Modifier and Type Method Description protected void
decode(ChannelHandlerContext ctx, MemcacheObject msg, List<Object> out)
Methods inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObjectAggregator
channelInactive, getMaxContentLength, getMaxCumulationBufferComponents, handlerAdded, handlerRemoved, setMaxCumulationBufferComponents
Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder
acceptInboundMessage, channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
BinaryMemcacheObjectAggregator
public BinaryMemcacheObjectAggregator(int maxContentLength)
-
-
Method Details
-
decode
protected void decode(ChannelHandlerContext ctx, MemcacheObject msg, List<Object> out) throws Exception- Specified by:
decode
in classMessageToMessageDecoder<MemcacheObject>
- Throws:
Exception
-