|  |  |  | 
|---|
|  |  |  | * @Description: 在线事件监听器,监听到离线后,修改设备离在线状态。 设备在线有两个来源: | 
|---|
|  |  |  | *               1、设备主动注销,发送注销指令,{@link com.genersoft.iot.vmp.gb28181.transmit.request.impl.RegisterRequestProcessor} | 
|---|
|  |  |  | *               2、设备未知原因离线,心跳超时,{@link com.genersoft.iot.vmp.gb28181.transmit.request.impl.MessageRequestProcessor} | 
|---|
|  |  |  | * @author: songww | 
|---|
|  |  |  | * @author: swwheihei | 
|---|
|  |  |  | * @date: 2020年5月6日 下午1:51:23 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Component | 
|---|
|  |  |  | 
|---|
|  |  |  | public void onApplicationEvent(OnlineEvent event) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (logger.isDebugEnabled()) { | 
|---|
|  |  |  | logger.debug("设备离线事件触发,deviceId:" + event.getDeviceId() + ",from:" + event.getFrom()); | 
|---|
|  |  |  | logger.debug("设备上线事件触发,deviceId:" + event.getDeviceId() + ",from:" + event.getFrom()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String key = VideoManagerConstants.KEEPLIVEKEY_PREFIX + event.getDeviceId(); | 
|---|