xuhy
2023-03-08 9a50a7ea9688a1e777f98713560e9c599d5064ae
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
package com.stylefeng.guns.modular.system.util.task;
 
 
public class ThreadTes implements Runnable{
    @Override
    public void run() {
        try {
            System.out.println(">>>>>>>>>>>>>>>>>>> start ");
            Thread.sleep(2000);
            System.out.println(">>>>>>>>>>>>>>>>>>> remove job 5 ");
            /*QuartzManager.removeJob(String.valueOf(5), 
                    TimeJobType.NEWS);*/
            System.out.println(">>>>>>>>>>>>>>>>>>> stop");
            
            
            Thread.sleep(2000);
            System.out.println(">>>>>>>>>>>>>>>>>>> modify job 10 ");
            //QuartzManager.modifyJobTime(String.valueOf(10), TimeJobType.NEWS, new Date(Calendar.getInstance().getTimeInMillis() + 20*1000));
            System.out.println(">>>>>>>>>>>>>>>>>>> stop");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
 
}