linwe
2024-06-19 6b113a88e7b7b625405cc0b1d46efa22d46c71a2
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
31
32
package com.xxl.job.core.handler;
 
/**
 * job handler
 *
 * @author liyh
 */
public abstract class IJobHandler {
 
    /**
     * execute handler, invoked when executor receives a scheduling request
     *
     * @throws Exception
     */
    public abstract void execute() throws Exception;
 
    /**
     * init handler, invoked when JobThread init
     */
    public void init() throws Exception {
 
    }
 
    /**
     * destroy handler, invoked when JobThread destroy
     */
    public void destroy() throws Exception {
 
    }
 
 
}