视频监控在线状态改为3分钟更新一次
This commit is contained in:
parent
d8616fa68d
commit
97f36b579d
@ -10,7 +10,6 @@ import com.zhgd.xmgl.modules.video.entity.VideoItem;
|
|||||||
import com.zhgd.xmgl.modules.video.mapper.VideoItemMapper;
|
import com.zhgd.xmgl.modules.video.mapper.VideoItemMapper;
|
||||||
import com.zhgd.xmgl.util.HikVideoUtil;
|
import com.zhgd.xmgl.util.HikVideoUtil;
|
||||||
import com.zhgd.xmgl.util.YsVideoUtil;
|
import com.zhgd.xmgl.util.YsVideoUtil;
|
||||||
import lombok.extern.log4j.Log4j;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import net.javacrumbs.shedlock.core.SchedulerLock;
|
import net.javacrumbs.shedlock.core.SchedulerLock;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
@ -44,7 +43,7 @@ public class VideoTask {
|
|||||||
private String serverUrl;
|
private String serverUrl;
|
||||||
|
|
||||||
@SchedulerLock(name = "updateVideoState", lockAtMostFor = 1000 * 60 * 60, lockAtLeastFor = 1000 * 60 * 5)
|
@SchedulerLock(name = "updateVideoState", lockAtMostFor = 1000 * 60 * 60, lockAtLeastFor = 1000 * 60 * 5)
|
||||||
@Scheduled(cron = "0 0 */1 * * ?")
|
@Scheduled(cron = "0 */3 * * * ?")
|
||||||
@RequestMapping("updateVideoState")
|
@RequestMapping("updateVideoState")
|
||||||
public void updateVideoState() {
|
public void updateVideoState() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user