@Scheduled(fixedRate = 60000)
@Transactional
public void purgeOldNotifications() {
ExpirationConfiguration props = properties.getNotifications();
String methodName = "purgeOldNotifications";
PurgeMethods purgeMethod = new PurgeMethods() {
@Override
public long deleteByTime(long time) {
return notRepo.deleteByTimeLessThanOrderByTimeDesc(time);
}
@Override
public long deleteBySize(long max) {
return 0;
}
};
purgeData(methodName, props, purgeMethod);
}
DataScheduler.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:stdds-monitor
作者:
评论列表
文章目录