提交 ce78a979 作者: 925993793@qq.com

自定义专题绑定信息源变更通知采集,另起线程处理,不影响主业务逻辑

上级 4afc74d5
......@@ -26,6 +26,7 @@ import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.util.*;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
@Service
......@@ -197,6 +198,7 @@ public class ConfigurationMessageService {
public void bindInfoSourceSend(String subjectId){
CompletableFuture.runAsync(() -> {
try {
remoteModelService.delSubjectCache(subjectId);
} catch (Exception e) {
......@@ -226,6 +228,7 @@ public class ConfigurationMessageService {
throw new RuntimeException("专题信息源配置通知采集失败");
}
log.info("{}专题信息源配置通知采集结束",byId.getSubjectName());
});
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论