疯狂的狮子Li
2024-03-14 abe6b05c5c1322eb28185a8354d02c72247f26b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.dromara.job.easyretry;
 
import com.aizuda.easy.retry.client.job.core.annotation.JobExecutor;
import com.aizuda.easy.retry.client.job.core.dto.JobArgs;
import com.aizuda.easy.retry.client.model.ExecuteResult;
import com.aizuda.easy.retry.common.core.util.JsonUtil;
import com.aizuda.easy.retry.common.log.EasyRetryLog;
import org.springframework.stereotype.Component;
 
/**
 * @author www.byteblogs.com
 * @date 2023-09-28 22:54:07
 */
@Component
@JobExecutor(name = "testJobExecutor")
public class TestAnnoJobExecutor {
 
    public ExecuteResult jobExecute(JobArgs jobArgs) {
        EasyRetryLog.LOCAL.info("testJobExecutor. jobArgs:{}", JsonUtil.toJsonString(jobArgs));
        EasyRetryLog.REMOTE.info("testJobExecutor. jobArgs:{}", JsonUtil.toJsonString(jobArgs));
        return ExecuteResult.success("测试成功");
    }
}