public boolean isfull() {
        checkMode(true);
        if (datalen >= capacity) {
            return true;
        }
        return false;
    }
add msg
@param attr
@param data
@return
inlong-common/src/main/java/org/apache/inlong/common/msg/InLongMsg.java