package luo.common.thread.pool; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; public class App { public static void main(String[] args) throws InterruptedException, ExecutionException { List<String> lists = new ArrayList<String>(); for (int i = 0; i < 100000; i++) { lists.add("shuju"+i); } List<SessionCallable<String>> callables= SyncThreadPool.getSessionCallable(lists); List<Future<String>> syncFnData = SyncThreadPool.syncFn(callables); //´¦Àí½á¹û List<String> results = new ArrayList<String>(); for (Future<String> future : syncFnData) { if(future.isDone()){ results.add(future.get()) ; } } //System.err.println(results); } }

2469095052 LV8
2022年5月27日
mylzdy LV12
2022年5月21日
ts10542 LV9
2021年10月30日
石乐志 LV1
2021年7月17日
尹恒yingying LV18
2021年4月29日
liuzzz LV5
2021年4月26日
zhenghongixin4065 LV9
2021年1月23日
w85225864 LV1
2020年8月24日
倪卟懂 LV18
2020年1月21日
lyd19931203 LV21
2019年12月5日