44323
2023-11-21 1e64ef03770f4e3a7f357049a6fe744f39c2c4b6
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.dsh.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();
        }
    }
 
}