liusuyi
2026-06-01 a2e7e8ff9cfaa69b001d483710bddbda50d55c91
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.ard.gb28181.service;
 
import com.ard.gb28181.api.domain.Device;
import com.ard.gb28181.api.domain.DeviceChannel;
 
import java.util.List;
 
public interface IRedisCatchStorage {
 
    /**
     * 查询设备信息
     *
     * @param deviceId 设备编号
     * @return 设备信息
     */
    Device getDevice(String deviceId);
 
    /**
     * 将device信息写入redis
     *
     * @param device
     */
    void updateDevice(Device device);
 
    /**
     * 计数器。为cseq进行计数
     *
     * @return
     */
    Long getCSEQ();
 
    /**
     * 根据设备id清除设备通道
     *
     * @param deviceId
     */
    void cleanChannelsForDevice(String deviceId);
 
    /**
     * 查询全部通道刷新
     *
     * @param deviceId
     * @return
     */
    List<DeviceChannel> queryAllChannelsForRefresh(String deviceId);
 
    /**
     * 批量添加设备通道
     *
     * @param deviceId
     * @param subList
     */
    void batchAdd(String deviceId, List<DeviceChannel> subList);
 
    /**
     * 批量修改设备通道
     *
     * @param deviceId
     * @param subList
     */
    void batchUpdate(String deviceId, List<DeviceChannel> subList);
 
    /**
     * 获取所有设备
     *
     * @return 设备列表
     */
    List<Device> getAllDevices();
}