public final class EhCachePlugin extends Object implements Activeable, CachePlugin
| Constructor and Description |
|---|
EhCachePlugin(CodecManager codecManager)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCache(String context,
CacheConfig cacheConfig)
Configuration des caches.
|
void |
clear(String context)
Effacement du contenu d'un contexte.
|
void |
clearAll()
Effacement du contenu de TOUS les Contextes de cache.
|
Object |
get(String context,
Serializable key)
Cette methode rend l'objet désigne par le contexte et le handle donnée en entrée.
|
void |
put(String context,
Serializable key,
Object value)
Ajoute Objet dans le cache.
|
boolean |
remove(String context,
Serializable key)
Suppression du cache de l'objet référencé par sa clé.
|
void |
start() |
void |
stop() |
@Inject public EhCachePlugin(CodecManager codecManager)
codecManager - CodecManagerpublic void addCache(String context, CacheConfig cacheConfig)
addCache in interface CachePlugincontext - Contexte du cachecacheConfig - Config of cachepublic void put(String context, Serializable key, Object value)
put in interface CachePlugincontext - Contexte de cachekey - Clé de l'objet à insérervalue - Objet à insérerpublic Object get(String context, Serializable key)
get in interface CachePlugincontext - Contexte de cachekey - Clé de l'objet à récupérerpublic boolean remove(String context, Serializable key)
remove in interface CachePlugincontext - Contexte de cachekey - Clé de l'objet à supprimerpublic void clearAll()
clearAll in interface CachePluginpublic void clear(String context)
clear in interface CachePlugincontext - Contexte de cachepublic void start()
start in interface Activeablepublic void stop()
stop in interface ActiveableCopyright © 2016. All Rights Reserved.