From b726dc97538b7d4ba71fd06c14161017dd67c2b7 Mon Sep 17 00:00:00 2001 From: xubinbin <1323875150@qq.com> Date: 星期三, 10 五月 2023 15:38:22 +0800 Subject: [PATCH] "@schedule"是Spring框架提供的一种定时任务执行机制,默认情况下它是单线程执行,项目中多次使用fixedRate按指定频率执行任务(不管前面任务是否已经完成),在同时执行多个定时任务时可能会出现阻塞和性能问题,为了解决这种单线程瓶颈问题,将定时任务的执行机制改为支持多线程 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 52 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java index 4ec182a..7ff5283 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java @@ -1,23 +1,39 @@ package com.genersoft.iot.vmp.gb28181.bean; -//import gov.nist.javax.sip.header.SIPDate; +import io.swagger.v3.oas.annotations.media.Schema; +import java.time.Instant; import java.util.List; /** - * @Description:璁惧褰曞儚淇℃伅bean + * @description:璁惧褰曞儚淇℃伅bean * @author: swwheihei * @date: 2020骞�5鏈�8鏃� 涓嬪崍2:05:56 */ +@Schema(description = "璁惧褰曞儚鏌ヨ缁撴灉淇℃伅") public class RecordInfo { + @Schema(description = "璁惧缂栧彿") private String deviceId; - + + @Schema(description = "閫氶亾缂栧彿") + private String channelId; + + @Schema(description = "鍛戒护搴忓垪鍙�") + private String sn; + + @Schema(description = "璁惧鍚嶇О") private String name; - + + @Schema(description = "鍒楄〃鎬绘暟") private int sumNum; - + + private int count; + + private Instant lastTime; + + @Schema(description = "") private List<RecordItem> recordList; public String getDeviceId() { @@ -52,4 +68,35 @@ this.recordList = recordList; } + public String getChannelId() { + return channelId; + } + + public void setChannelId(String channelId) { + this.channelId = channelId; + } + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public Instant getLastTime() { + return lastTime; + } + + public void setLastTime(Instant lastTime) { + this.lastTime = lastTime; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } } -- Gitblit v1.8.0