public boolean addMsgs(String attr, ByteBuffer data) {
        boolean res = true;
        Iterator<ByteBuffer> it = getIteratorBuffer(data);
        setCheckMode(false);
        while (it.hasNext()) {
            res = this.addMsg(attr, it.next());
        }
        setCheckMode(true);
        return res;
    }
add msg
@param attr
@param data
@return
inlong-common/src/main/java/org/apache/inlong/common/msg/InLongMsg.java