puzhibing
2022-08-22 1421f8e9c308c4741cb396309035009393b5b036
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();
        }
    }
 
}