public void setSingleDecode(boolean singleDecode) {
        this.singleDecode = singleDecode;
    }
If set then only one message is decoded on each {@link #channelRead(ChannelHandlerContext, Object)}
call. This may be useful if you need to do some protocol upgrade and want to make sure nothing is mixed up.

Default is {@code false} as this has performance impacts.
src/main/java/com/alipay/remoting/codec/AbstractBatchDecoder.java