public final class DelayedMemoryKVDataStorePlugin extends Object implements KVDataStorePlugin, Activeable
| Constructor and Description |
|---|
DelayedMemoryKVDataStorePlugin(String dataStoreName,
int timeToLiveSeconds)
Constructor.
|
@Inject
public DelayedMemoryKVDataStorePlugin(@Named(value="dataStoreName")
String dataStoreName,
@Named(value="timeToLiveSeconds")
int timeToLiveSeconds)
timeToLiveSeconds - life time of elements (seconde)public String getDataStoreName()
getDataStoreName in interface KVDataStorePluginpublic void put(String key, Object data)
put in interface KVDataStorePluginpublic void remove(String key)
remove in interface KVDataStorePluginpublic <C> Option<C> find(String key, Class<C> clazz)
find in interface KVDataStorePluginpublic <C> List<C> findAll(int skip, Integer limit, Class<C> clazz)
findAll in interface KVDataStorePluginpublic void start()
start in interface Activeablepublic void stop()
stop in interface ActiveableCopyright © 2014. All Rights Reserved.