修复过期时间设置异常
This commit is contained in:
@@ -11,7 +11,7 @@ public class DeviceStatusTaskInfo{
|
||||
private SipTransactionInfo transactionInfo;
|
||||
|
||||
/**
|
||||
* 过期时间
|
||||
* 过期时间,单位毫秒
|
||||
*/
|
||||
private long expireTime;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public class DeviceStatusTaskRunner {
|
||||
if (taskInfo == null) {
|
||||
continue;
|
||||
}
|
||||
Long expire = redisTemplate.getExpire(redisKey);
|
||||
Long expire = redisTemplate.getExpire(redisKey, TimeUnit.MILLISECONDS);
|
||||
taskInfo.setExpireTime(expire);
|
||||
result.add(taskInfo);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ public class SubscribeTaskInfo {
|
||||
private String key;
|
||||
|
||||
/**
|
||||
* 过期时间
|
||||
* 过期时间,单位: 秒
|
||||
*/
|
||||
private long expireTime;
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ public class SubscribeTaskRunner{
|
||||
if (taskInfo == null) {
|
||||
continue;
|
||||
}
|
||||
Long expire = redisTemplate.getExpire(redisKey);
|
||||
Long expire = redisTemplate.getExpire(redisKey, TimeUnit.SECONDS);
|
||||
taskInfo.setExpireTime(expire);
|
||||
result.add(taskInfo);
|
||||
}
|
||||
|
||||
@@ -1,15 +1,8 @@
|
||||
package com.genersoft.iot.vmp.gb28181.task.platformStatus;
|
||||
|
||||
import com.genersoft.iot.vmp.common.CommonCallback;
|
||||
import com.genersoft.iot.vmp.gb28181.bean.SipTransactionInfo;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.concurrent.Delayed;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* 平台注册任务可序列化的信息
|
||||
@@ -23,7 +16,7 @@ public class PlatformRegisterTaskInfo{
|
||||
private SipTransactionInfo sipTransactionInfo;
|
||||
|
||||
/**
|
||||
* 过期时间
|
||||
* 过期时间,单位: 毫秒
|
||||
*/
|
||||
private long expireTime;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ public class PlatformStatusTaskRunner {
|
||||
if (taskInfo == null) {
|
||||
continue;
|
||||
}
|
||||
Long expire = redisTemplate.getExpire(redisKey);
|
||||
Long expire = redisTemplate.getExpire(redisKey, TimeUnit.MILLISECONDS);
|
||||
taskInfo.setExpireTime(expire);
|
||||
result.add(taskInfo);
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@ spring:
|
||||
application:
|
||||
name: wvp
|
||||
profiles:
|
||||
active: 1078
|
||||
active: 274-dev
|
||||
|
||||
Reference in New Issue
Block a user