public class LocalUserMessageCache extends Object implements UserMessageCache
| Constructor and Description |
|---|
LocalUserMessageCache(String name) |
| Modifier and Type | Method and Description |
|---|---|
List<Message> |
getAndRemove(String key)
Gets the value identified by the given key and removes it from the cache.
|
void |
put(String key,
List<Message> value)
Puts a value inside the cache identified by the key.
|
public LocalUserMessageCache(String name)
public void put(String key, List<Message> value)
UserMessageCacheput in interface UserMessageCachekey - the key identifying the valuevalue - the messages to put inside the cachepublic List<Message> getAndRemove(String key)
UserMessageCachegetAndRemove in interface UserMessageCachekey - the key identifying the valueCopyright © 2018. All rights reserved.