未验证 提交 4c9921f7 编写于 作者: W WYAOBO 提交者: GitHub

Update KnowStreaming Task模块简介.md

上级 6dd72d40
......@@ -41,11 +41,15 @@ Task模块基于Logi-Job的广播模式与抢占模式,分别实现了任务
consensual = ConsensualEnum.RANDOM, // 这里一定要设置为RANDOM
timeout = 6 * 60)
public class TestJob implements Job {
@Override
public TaskResult execute(JobContext jobContext) throws Exception {
public TaskResult execute(JobContext jobContext) throws Exception {
System.out.println("测试定时任务运行中");
return new TaskResult();
}
}
```
......@@ -69,12 +73,16 @@ public class TestJob implements Job {
autoRegister = true,
consensual = ConsensualEnum.BROADCAST, // 这里一定要设置为BROADCAST
timeout = 6 * 60)
public class TestJob implements Job {
public class TestJob implements Job {
@Override
public TaskResult execute(JobContext jobContext) throws Exception {
public TaskResult execute(JobContext jobContext) throws Exception {
System.out.println("测试定时任务运行中");
return new TaskResult();
}
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册