public final class BerkeleyContextCachePlugin extends Object implements Activeable, ContextCachePlugin
| Constructor and Description |
|---|
BerkeleyContextCachePlugin(io.vertigo.commons.codec.CodecManager codecManager,
String cachePath,
int timeToLiveSeconds)
Constructeur.
|
| Modifier and Type | Method and Description |
|---|---|
KActionContext |
get(String key)
Cette methode rend l'objet désigne par le contexte et le handle donnée en entrée.
|
void |
put(KActionContext context)
Ajoute Objet dans le cache.
|
void |
start() |
void |
stop() |
@Inject
public BerkeleyContextCachePlugin(io.vertigo.commons.codec.CodecManager codecManager,
@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 void put(KActionContext context)
put in interface ContextCachePlugincontext - Context à insérerpublic KActionContext get(String key)
get in interface ContextCachePluginkey - Clé de l'objet à récupérerpublic void start()
start in interface Activeablepublic void stop()
stop in interface ActiveableCopyright © 2015. All Rights Reserved.