public class ListLoaderCenter extends Object implements ListLoader
| 限定符和类型 | 方法和说明 |
|---|---|
static ListLoaderCenter |
getInstance() |
ListInfoHelper |
getListInfo(Object account_id,
LsCacheInfoHelper lsHelper,
int strategy,
boolean needLock) |
List |
getSectionIdList(LsCacheInfoHelper lsHelper,
ListInfoHelper infoHelper,
Object account_id,
Long sectionNo,
int strategy,
boolean needLock) |
SectionInfo |
getUpdatedSection(Object account_id,
Object obj,
LsCacheInfoHelper lsHelper) |
void |
removeIdFromList(Object account_id,
Object obj,
SectionInfo secInfo,
boolean reload) |
public static ListLoaderCenter getInstance()
public ListInfoHelper getListInfo(Object account_id, LsCacheInfoHelper lsHelper, int strategy, boolean needLock) throws DaoException
getListInfo 在接口中 ListLoaderDaoExceptionpublic List getSectionIdList(LsCacheInfoHelper lsHelper, ListInfoHelper infoHelper, Object account_id, Long sectionNo, int strategy, boolean needLock) throws DaoException
getSectionIdList 在接口中 ListLoaderneedLock - :当多个用户都需要加载一个List时,此时仅有一个用户可以加载成功,所以此时需要锁机制
但是当对List进行 save/update/delete 操作时,不需要这种锁机制,因为他本身会锁定其他用户的加载动作DaoExceptionpublic SectionInfo getUpdatedSection(Object account_id, Object obj, LsCacheInfoHelper lsHelper) throws Exception
getUpdatedSection 在接口中 ListLoaderExceptionpublic void removeIdFromList(Object account_id, Object obj, SectionInfo secInfo, boolean reload) throws Exception
removeIdFromList 在接口中 ListLoaderExceptionCopyright © 2022. All rights reserved.