public final class DelayedMemoryKVDataStorePlugin extends Object implements KVDataStorePlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
DelayedMemoryKVDataStorePlugin.RemoveTooOldElementsDaemon |
| Constructor and Description |
|---|
DelayedMemoryKVDataStorePlugin(DaemonManager daemonManager,
String dataStoreName,
int timeToLiveSeconds)
Constructor.
|
@Inject public DelayedMemoryKVDataStorePlugin(DaemonManager daemonManager, @Named(value="dataStoreName") String dataStoreName, @Named(value="timeToLiveSeconds") int timeToLiveSeconds)
daemonManager - Manager des daemonsdataStoreName - Store utilisé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 KVDataStorePluginCopyright © 2015. All Rights Reserved.