public final class DelayedBerkeleyKVDataStorePlugin extends Object implements KVDataStorePlugin, Activeable
| Constructor and Description |
|---|
DelayedBerkeleyKVDataStorePlugin(CodecManager codecManager,
String dataStoreName,
String cachePath,
int timeToLiveSeconds)
Constructeur.
|
@Inject public DelayedBerkeleyKVDataStorePlugin(CodecManager codecManager, @Named(value="dataStoreName") String dataStoreName, @Named(value="cachePath") String cachePath, @Named(value="timeToLiveSeconds") int timeToLiveSeconds)
codecManager - Manager des mécanismes de codage/décodage.cachePath - Chemin de stockagetimeToLiveSeconds - Durée de vie des éléments en secondepublic String getDataStoreName()
getDataStoreName in interface KVDataStorePluginpublic void put(String key, Object data)
put 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 remove(String key)
remove in interface KVDataStorePluginpublic void start()
start in interface Activeablepublic void stop()
stop in interface ActiveableCopyright © 2014. All Rights Reserved.