linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
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 com.xxl.job.core.handler.annotation;
 
import java.lang.annotation.*;
 
/**
 * annotation for method jobhandler
 *
 * @author liyh
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface XxlJob {
 
    /**
     * jobhandler name
     */
    String value();
 
    /**
     * init handler, invoked when JobThread init
     */
    String init() default "";
 
    /**
     * destroy handler, invoked when JobThread destroy
     */
    String destroy() default "";
 
}