xiangpei
2025-05-09 641b4a3b1572f3a75ce0bd7d645e34252237cf9c
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;
}