# ThreadPoolClients **Repository Path**: alotuser/ThreadPoolClients ## Basic Information - **Project Name**: ThreadPoolClients - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-25 - **Last Updated**: 2022-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ThreadPoolClients 欢迎吐槽,用法如下 DEMO: public static void main(String[] args) { ThreadPoolClients tpc=new ThreadPoolClients(100); for(int i=0;i<10;i++) { tpc.add(new ThreadPoolTask() { @Override public Object call() throws Exception { String text=""; int num= (int) (Math.random()*100000000); String phone="139"+num; //phone="13816360435";// 13816360435 try { // } catch (IOException e) { e.printStackTrace(); }finally { super.call(); } System.out.println(phone+text); return phone+text; } }); } List list=tpc.submits(); for (ThreadPoolEntity tpe : list) { try { //System.out.println(tpe.getKey()+"\t"+tpe.getFuture().get()); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }