import com.shsnc.atm.module.service.BaseResourceExtendService;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
/**
*
* Created by cg on 2019/7/17.
*/
public class InstanceAttrQueryCallable implements Callable<List<Map<String, Object>>> {
private List<String> resourceCodes;
private List<String> manageIps;
private Service service; //业务处理类注入
/**
*采用构造方法传参
*/
public InstanceAttrQueryCallable(List<String> resourceCodes,List<String> manageIps,Service service) {
this.resourceCodes = resourceCodes;
this.resourceCodes = resourceCodes;
this.manageIps = manageIps;
this.service= service;
}
@Override
public List<Map<String, Object>> call() throws Exception {
List<Map<String, Object>> resul
利用Callable接口与Future实现多线程分页查询结果汇总
最新推荐文章于 2024-06-18 12:20:56 发布