# ThreadFilling **Repository Path**: FreeCode/ThreadFilling ## Basic Information - **Project Name**: ThreadFilling - **Description**: 该代理工具类是可以自动拆分数据,并且开启多线程工具实现代理方法的同步处理数据,最后拼合数据 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2019-03-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 简介:该代理工具类是可以自动拆分数据,并且开启多线程工具实现代理方法的同步处理数据,最后拼合数据 使用方法: * @Author: **hihuzi** 2018/2/11 14:17 * @Function: 说明 多线程装填工具 * @Modifily: 使用 * _1.在使用方法上添加注解@ThreadUtilMethod * * _1.1 注解的方法没有参数传递 * _2.调用重载这个方法 `ThreadDate.init(String targetClass, List targetDate, int threadNumber)` * *_2.1 targetClass: 需要进行处理的方法类的全限定名 * *_2.2 targetDate: 待处理数据的集合 * *_2.3 threadNumber: 线程数量 * _3.ThreadDate.getResultData() 取出数据 * 说明 * A.目标数据量不能低于线程数目 否则跑一个线程 * B. 可以根据目标数据量阈值进行启用或者调用线程数目 `init(String targetClass, List totalDates, int threadNumber, int limitNumbers) `limitNumbers :设置阈值 大于时候启用线程 否则启用一个线程 */