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)
UserMessageCache
put
in interface UserMessageCache
key
- the key identifying the valuevalue
- the messages to put inside the cachepublic List<Message> getAndRemove(String key)
UserMessageCache
getAndRemove
in interface UserMessageCache
key
- the key identifying the valueCopyright © 2018. All rights reserved.