public class CacheServiceImpl extends Object implements CacheService
| Constructor and Description |
|---|
CacheServiceImpl(InitParams params) |
CacheServiceImpl(InitParams params,
ExoCacheFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExoCacheConfig(ComponentPlugin plugin) |
void |
addExoCacheConfig(ExoCacheConfigPlugin plugin)
Adds a cache configuration plugin.
|
Collection<ExoCache<? extends Serializable,?>> |
getAllCacheInstances()
Returns a collection of all the cache instances.
|
<K extends Serializable,V> |
getCacheInstance(String region)
Returns a specific cache instance.
|
protected String |
getConfigId(String region)
Gives the configuration id from the name of the region
|
protected void |
unregisterCacheInstance(String region)
Unregisters the cache instance corresponding to the given region
|
public CacheServiceImpl(InitParams params) throws Exception
Exceptionpublic CacheServiceImpl(InitParams params, ExoCacheFactory factory) throws Exception
Exceptionpublic void addExoCacheConfig(ComponentPlugin plugin)
public void addExoCacheConfig(ExoCacheConfigPlugin plugin)
CacheServiceaddExoCacheConfig in interface CacheServiceplugin - the pluginpublic <K extends Serializable,V> ExoCache<K,V> getCacheInstance(String region)
CacheServicegetCacheInstance in interface CacheServiceK - the key typeV - the value typeregion - the cache regionprotected void unregisterCacheInstance(String region)
region - the region for which we want to unregister the cache instanceprotected String getConfigId(String region)
public Collection<ExoCache<? extends Serializable,?>> getAllCacheInstances()
CacheServicegetAllCacheInstances in interface CacheServiceCopyright © 2015 eXo Platform SAS. All Rights Reserved.