peng
6 天以前 48a40ea665ed42713e472d429cf7e311c52d86a5
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 cn.lili.common.aop.annotation;
 
import java.lang.annotation.*;
 
/**
 * 异常重试注解
 *
 * @author paulG
 * @since 2022/4/26
 **/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface RetryOperation {
    /**
     * 重试次数
     */
    int retryCount() default 3;
 
    /**
     * 重试间隔
     */
    int waitSeconds() default 10;
}