限定符和类型 | 方法和说明 |
---|---|
int |
getCachedUserCount()
消息组件中已缓存的用户个数
|
long |
getHistoryTimestamp(long userId)
获取指定用户历史消息更新的时间戳。
|
static MessageState |
getInstance() |
int |
getState(long userId)
取得用户是否有消息的
|
boolean |
isUserCached(long userId)
用户消息是否被缓存
|
void |
setHasMessageState(long userId,
int count) |
void |
setHistoryTimestamp(List<com.seeyon.ctp.common.po.usermessage.UserHistoryMessage> historys) |
void |
setHistoryTimestamp(long userId,
long timestamp)
设置指定用户的历史消息更新时间戳。
|
void |
setNoMessageState(long userId)
当前节点消息更新
|
void |
setSendMessageState(long userId,
int count)
接收集群消息更新
|
public static MessageState getInstance()
public int getState(long userId)
userId
- public int getCachedUserCount()
public boolean isUserCached(long userId)
userId
- public void setNoMessageState(long userId)
userId
- public void setHasMessageState(long userId, int count)
public void setSendMessageState(long userId, int count)
userId
- count
- public long getHistoryTimestamp(long userId)
userId
- 用户Idpublic void setHistoryTimestamp(long userId, long timestamp)
userId
- 用户Id。timestamp
- 更新时间戳。public void setHistoryTimestamp(List<com.seeyon.ctp.common.po.usermessage.UserHistoryMessage> historys)
Copyright © 2016–2018. All rights reserved.