| | |
| | | import com.genersoft.iot.vmp.gb28181.event.EventPublisher;
|
| | |
|
| | | /**
|
| | | * @Description:设备心跳超时监听,借助redis过期特性,进行监听,监听到说明设备心跳超时,发送离线事件
|
| | | * @description:设备心跳超时监听,借助redis过期特性,进行监听,监听到说明设备心跳超时,发送离线事件
|
| | | * @author: swwheihei
|
| | | * @date: 2020年5月6日 上午11:35:46
|
| | | */
|
| | |
| | | // 获取失效的key
|
| | | String expiredKey = message.toString();
|
| | | if(!expiredKey.startsWith(VideoManagerConstants.KEEPLIVEKEY_PREFIX)){
|
| | | logger.info("收到redis过期监听,但开头不是"+VideoManagerConstants.KEEPLIVEKEY_PREFIX+",忽略");
|
| | | logger.debug("收到redis过期监听,但开头不是"+VideoManagerConstants.KEEPLIVEKEY_PREFIX+",忽略");
|
| | | return;
|
| | | }
|
| | |
|