gtsoft-snail-job-demo/src/main/java/com/example/easy/retry/service/LocalRetryService.java

29 lines
767 B
Java
Raw Normal View History

2023-09-02 17:24:47 +08:00
package com.example.easy.retry.service;
import com.aizuda.easy.retry.client.core.annotation.Retryable;
import com.aizuda.easy.retry.client.core.retryer.RetryType;
import com.example.easy.retry.vo.OrderVo;
2023-09-02 17:24:47 +08:00
/**
* @author: www.byteblogs.com
* @date : 2023-09-06 09:03
2023-09-02 17:24:47 +08:00
*/
public interface LocalRetryService {
void localRetry(String params);
@Retryable(scene = "localRetryWithAnnoOnInterface", retryStrategy = RetryType.ONLY_LOCAL)
void localRetryWithAnnoOnInterface(String params);
2023-09-02 17:24:47 +08:00
void localRetryWithBasicParams(String params);
2023-09-02 17:24:47 +08:00
void localRetryIncludeException(String params);
2023-09-02 17:24:47 +08:00
void localRetryExcludeException(String type);
2023-09-02 17:24:47 +08:00
void localRetryIsThrowException(String params);
2023-09-02 17:24:47 +08:00
boolean localRetryWithRetryMethod(OrderVo orderVo);
2023-09-02 17:24:47 +08:00
}