com.alipay.remoting.codec
Interface AbstractBatchDecoder.Cumulator

Enclosing class:
AbstractBatchDecoder

public static interface AbstractBatchDecoder.Cumulator

Cumulate ByteBufs.


Method Summary
 io.netty.buffer.ByteBuf cumulate(io.netty.buffer.ByteBufAllocator alloc, io.netty.buffer.ByteBuf cumulation, io.netty.buffer.ByteBuf in)
          Cumulate the given ByteBufs and return the ByteBuf that holds the cumulated bytes.
 

Method Detail

cumulate

io.netty.buffer.ByteBuf cumulate(io.netty.buffer.ByteBufAllocator alloc,
                                 io.netty.buffer.ByteBuf cumulation,
                                 io.netty.buffer.ByteBuf in)
Cumulate the given ByteBufs and return the ByteBuf that holds the cumulated bytes. The implementation is responsible to correctly handle the life-cycle of the given ByteBufs and so call ReferenceCounted.release() if a ByteBuf is fully consumed.



Copyright © 2018. All rights reserved.