forked from vector4wang/spring-boot-quick
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestMain.java
More file actions
30 lines (30 loc) · 924 Bytes
/
TestMain.java
File metadata and controls
30 lines (30 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//package quick.ForkJoinPool;
//
//import java.util.concurrent.ForkJoinPool;
//
///**
// * Created with IDEA
// * User: vector
// * Data: 2017/7/13
// * Time: 17:10
// * Description:
// */
//public class TestMain {
// public static void main(String[] args) {
// ForkJoinPool forkJoinPool = new ForkJoinPool(8);
// forkJoinPool.submit(()->{
// tasks.parallelStream().forEach(t->{
// try {
// String gdsstatus=transactionService.GetTransInfo(url, t.getTask_id());
// checkStatus(t.getTask_id(),t.getTask_status(),gdsstatus);
// } catch (Exception e) {
// System.out.println("EXCEPTION OCCOR IN TASK:"+t.getTask_id());
// e.printStackTrace();
// }
//
// System.out.println("NO:"+count.getAndIncrement()+" is done");
//
// });
// });
// }
//}