-
public interface IThingGroupCacheThe interface for manager Thing group cache.
-
-
Method Summary
Modifier and Type Method Description abstract voidupdateGroupCache(List<GroupRespBean> groupBeen)Update group cache. abstract List<GroupBean>getGroupList()Get group in the cache. abstract GroupBeangetGroupBean(long groupId)Get the GroupBean from the cache by groupId. abstract List<DeviceBean>getDeviceBeanList(long groupId)Get the list of DeviceBean by group id abstract voidaddGroup(GroupRespBean groupBean)Add GroupRespBean to cache. abstract voidremoveGroup(long groupId)Remove GroupRespBean from the cache by groupId. abstract voidonDestroy()Recycle and release the resources. abstract GroupRespBeangetGroupRespBean(long mGroupId)Get GroupRespBean from the cache by groupId. abstract voidaddGroupList(List<GroupRespBean> groupRespBeans)Add the list of GroupRespBean to cache. abstract List<GroupRespBean>getGroupRespBeanList()Get GroupRespBean in the cache. -
-
Method Detail
-
updateGroupCache
abstract void updateGroupCache(List<GroupRespBean> groupBeen)
Update group cache.
- Parameters:
groupBeen- the list of GroupRespBean
-
getGroupList
abstract List<GroupBean> getGroupList()
Get group in the cache.
-
getGroupBean
abstract GroupBean getGroupBean(long groupId)
Get the GroupBean from the cache by groupId.
- Parameters:
groupId- the group id
-
getDeviceBeanList
abstract List<DeviceBean> getDeviceBeanList(long groupId)
Get the list of DeviceBean by group id
- Parameters:
groupId- the group id
-
addGroup
abstract void addGroup(GroupRespBean groupBean)
Add GroupRespBean to cache.
- Parameters:
groupBean- GroupRespBean
-
removeGroup
abstract void removeGroup(long groupId)
Remove GroupRespBean from the cache by groupId.
- Parameters:
groupId- the group id
-
onDestroy
abstract void onDestroy()
Recycle and release the resources.
-
getGroupRespBean
abstract GroupRespBean getGroupRespBean(long mGroupId)
Get GroupRespBean from the cache by groupId.
- Parameters:
mGroupId- the group id
-
addGroupList
abstract void addGroupList(List<GroupRespBean> groupRespBeans)
Add the list of GroupRespBean to cache.
- Parameters:
groupRespBeans- the list of GroupRespBean
-
getGroupRespBeanList
abstract List<GroupRespBean> getGroupRespBeanList()
Get GroupRespBean in the cache.
-
-
-
-