public interface ListLoader
| 限定符和类型 | 方法和说明 |
|---|---|
ListInfoHelper |
getListInfo(Object account_id,
LsCacheInfoHelper lsInfo,
int strategy,
boolean needLock) |
List |
getSectionIdList(LsCacheInfoHelper lsInfo,
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 bReload) |
ListInfoHelper getListInfo(Object account_id, LsCacheInfoHelper lsInfo, int strategy, boolean needLock) throws DaoException
account_id - lsInfo - strategy - needLock - DaoExceptionList getSectionIdList(LsCacheInfoHelper lsInfo, ListInfoHelper infoHelper, Object account_id, Long sectionNo, int strategy, boolean needLock) throws DaoException
lsInfo - infoHelper - account_id - sectionNo - strategy - needLock - :当多个用户都需要加载一个List时,此时仅有一个用户可以加载成功,所以此时需要锁机制
但是当对List进行 save/update/delete 操作时,不需要这种锁机制,因为他本身会锁定其他用户的加载动作DaoExceptionSectionInfo getUpdatedSection(Object account_id, Object obj, LsCacheInfoHelper lsHelper) throws Exception
Exceptionvoid removeIdFromList(Object account_id, Object obj, SectionInfo secInfo, boolean bReload) throws Exception
ExceptionCopyright © 2021. All rights reserved.