feat: 3.1.0
1. 添加重试传播机制的描述
This commit is contained in:
parent
5174463979
commit
4cce228d5c
@ -1,13 +1,24 @@
|
|||||||
package com.aizuda.easy.retry.client.core.annotation;
|
package com.aizuda.easy.retry.client.core.annotation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Easy Retry 重试任务传播机制
|
||||||
|
*
|
||||||
* @author: xiaowoniu
|
* @author: xiaowoniu
|
||||||
* @date : 2024-02-05
|
* @date : 2024-02-05
|
||||||
* @since : 3.1.0
|
* @since : 3.1.0
|
||||||
*/
|
*/
|
||||||
public enum Propagation {
|
public enum Propagation {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当设置为REQUIRED时,如果当前重试存在,就加入到当前重试中,即外部入口触发重试
|
||||||
|
* 如果当前重试不存在,就创建一个新的重试任务。
|
||||||
|
*/
|
||||||
REQUIRED,
|
REQUIRED,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当设置为REQUIRES_NEW时,
|
||||||
|
* 无论当前重试任务是否存在,都会一个新的重试任务。
|
||||||
|
*/
|
||||||
REQUIRES_NEW
|
REQUIRES_NEW
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -10,8 +10,11 @@ import org.springframework.stereotype.Service;
|
|||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class WorkflowNodeServiceImpl implements WorkflowNodeService {
|
public class WorkflowNodeServiceImpl implements WorkflowNodeService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean stop(Long id) {
|
public Boolean stop(Long id) {
|
||||||
|
// 调用JOB的停止接口
|
||||||
|
// 继续执行后续的任务
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user