设备缓存增加物模型ID
This commit is contained in:
parent
52f51bf88b
commit
ee51b3d6a9
@ -13,7 +13,24 @@ public interface EquipmentCache {
|
|||||||
* @return List<DeviceInfoCache>
|
* @return List<DeviceInfoCache>
|
||||||
*/
|
*/
|
||||||
public List<DeviceInfoCache> getDevicesCache();
|
public List<DeviceInfoCache> getDevicesCache();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 刷新指定设备缓存
|
||||||
|
* @param deviceId
|
||||||
|
*/
|
||||||
public void refreshDeviceCache(Long deviceId);
|
public void refreshDeviceCache(Long deviceId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过设备Code获取设备缓存信息
|
||||||
|
* @param deviceCode
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
DeviceInfoCache getDeviceInfoCache(String deviceCode);
|
DeviceInfoCache getDeviceInfoCache(String deviceCode);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过设备ID获取设备缓存信息
|
||||||
|
* @param deviceId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
DeviceInfoCache getDeviceInfoCache(Long deviceId);
|
DeviceInfoCache getDeviceInfoCache(Long deviceId);
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,10 @@ public class EquipmentCacheImpl implements EquipmentCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取设备缓存列表
|
||||||
|
* @return List<DeviceInfoCache>
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<DeviceInfoCache> getDevicesCache() {
|
public List<DeviceInfoCache> getDevicesCache() {
|
||||||
return Collections.unmodifiableList(deviceInfoCaches);
|
return Collections.unmodifiableList(deviceInfoCaches);
|
||||||
|
Loading…
Reference in New Issue
Block a user