xiangpei
2025-06-04 4e502853119c6d8e7ff686191e19bb0a19a4f875
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;
}