public class CtMsgCacheManager extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
msgCacheName |
| 构造器和说明 |
|---|
CtMsgCacheManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Msg> |
cloneMsg(Msg msg,
Class<T> tClass) |
<T extends Msg> |
creatMsg(Class<T> tClass) |
<T extends Msg> |
deleteMsg(String msgId,
Class<T> clazz) |
<V extends Msg,T extends List<V>> |
findMsgs(Condition<MsgConditionKey,JLuceneIndex> condition,
Class<V> tClass) |
static CtMsgCacheManager |
getInstance() |
<T extends Msg> |
getMsgById(String msgId,
Class<T> classType) |
void |
invalidate() |
boolean |
isCacheEnabled() |
static void |
main(String[] args) |
void |
sendMassMsg(Msg msg,
List<String> personIds) |
void |
updateMsg(Msg msg) |
public static CtMsgCacheManager getInstance()
public <T extends Msg> T getMsgById(String msgId, Class<T> classType) throws JDSException
msgId - JDSExceptionpublic boolean isCacheEnabled()
public void invalidate()
public <V extends Msg,T extends List<V>> ListResultModel<T> findMsgs(Condition<MsgConditionKey,JLuceneIndex> condition, Class<V> tClass) throws JDSException
JDSExceptionpublic void updateMsg(Msg msg)
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2023 onecode. All rights reserved.