public class MobileMessageCache
extends java.lang.Object
构造器和说明 |
---|
MobileMessageCache() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
cache(java.lang.String key,
Message message) |
void |
clearMessageCache() |
Message[] |
getAllMessages(java.lang.String terminalType,
java.lang.String userName) |
static MobileMessageCache |
getInstance() |
void |
injectMessageCache(long terminalType,
Message message) |
boolean |
removeCache(java.lang.String key) |
boolean |
updateToasted(java.lang.String key) |
public static MobileMessageCache getInstance()
public void injectMessageCache(long terminalType, Message message) throws java.lang.Exception
java.lang.Exception
public void clearMessageCache()
public boolean cache(java.lang.String key, Message message) throws java.lang.Exception
java.lang.Exception
public boolean removeCache(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public Message[] getAllMessages(java.lang.String terminalType, java.lang.String userName) throws java.lang.Exception
java.lang.Exception
public boolean updateToasted(java.lang.String key) throws java.lang.Exception
java.lang.Exception