feat: 3.1.0

1. 添加重试传播机制的描述
This commit is contained in:
byteblogs168 2024-02-22 23:10:31 +08:00
parent 5174463979
commit 4cce228d5c
2 changed files with 14 additions and 0 deletions

View File

@ -1,13 +1,24 @@
package com.aizuda.easy.retry.client.core.annotation;
/**
* Easy Retry 重试任务传播机制
*
* @author: xiaowoniu
* @date : 2024-02-05
* @since : 3.1.0
*/
public enum Propagation {
/**
* 当设置为REQUIRED时如果当前重试存在就加入到当前重试中即外部入口触发重试
* 如果当前重试不存在就创建一个新的重试任务
*/
REQUIRED,
/**
* 当设置为REQUIRES_NEW时
* 无论当前重试任务是否存在都会一个新的重试任务
*/
REQUIRES_NEW
;

View File

@ -10,8 +10,11 @@ import org.springframework.stereotype.Service;
*/
@Service
public class WorkflowNodeServiceImpl implements WorkflowNodeService {
@Override
public Boolean stop(Long id) {
// 调用JOB的停止接口
// 继续执行后续的任务
return null;
}