public abstract class BaseConsumerRedisService extends BaseRedisService
| 构造器和说明 |
|---|
BaseConsumerRedisService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bind(BaseConsumerTypeNotify notify)
绑定通知
|
void |
bindEntityNotify(BaseConsumerEntityNotify entityNotify) |
BaseEntity |
getEntity(String entityKey)
获取实体
|
List<BaseConsumerEntityNotify> |
getEntityNotify() |
Map<String,BaseEntity> |
getEntitys()
获得一个副本
|
boolean |
isNeedLoad()
根据redis的时间戳,判定数据是否已经被生产者更新
|
void |
loadAgileEntities()
从redis重新读取数据到本地内存中
|
void |
loadAllEntities()
从redis重新读取数据到本地内存中
|
BaseEntity |
selectEntity(BaseEntity entity)
根据Key特征,查询实体
|
cleanAgileEntities, deleteEntity, foreachFinder, getEntity, getEntity, getEntityCount, getEntityList, getEntityList, getEntityType, getHead, getRedisService, getUpdateTime, insertEntity, isEmpty, isInited, isNeedSave, saveAgileEntities, saveAllEntities, setDataMap, setInited, updateEntitypublic boolean isNeedLoad()
isNeedLoad 在类中 BaseRedisServicepublic void loadAllEntities()
throws com.fasterxml.jackson.core.JsonParseException
loadAllEntities 在类中 BaseRedisServicecom.fasterxml.jackson.core.JsonParseExceptionpublic void bind(BaseConsumerTypeNotify notify)
bind 在类中 BaseRedisServicenotify - public List<BaseConsumerEntityNotify> getEntityNotify()
getEntityNotify 在类中 BaseRedisServicepublic void bindEntityNotify(BaseConsumerEntityNotify entityNotify)
public void loadAgileEntities()
throws IOException
loadAgileEntities 在类中 BaseRedisServiceIOExceptionpublic Map<String,BaseEntity> getEntitys()
getEntitys 在类中 BaseRedisServicepublic BaseEntity getEntity(String entityKey)
getEntity 在类中 BaseRedisServicepublic BaseEntity selectEntity(BaseEntity entity)
selectEntity 在类中 BaseRedisServiceentity - 实体Copyright © 2024. All rights reserved.