eXo Kernel :: Component :: Cache Service 2.4.10-UXP01

org.exoplatform.services.cache.impl
Class CacheServiceImpl

java.lang.Object
  extended by org.exoplatform.services.cache.impl.CacheServiceImpl
All Implemented Interfaces:
CacheService

public class CacheServiceImpl
extends Object
implements CacheService

Created by The eXo Platform SAS. Author : Tuan Nguyen tuan08@users.sourceforge.net Sat, Sep 13, 2003 @ Time: 1:12:22 PM


Constructor Summary
CacheServiceImpl(InitParams params)
           
CacheServiceImpl(InitParams params, ExoCacheFactory factory)
           
 
Method Summary
 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>
ExoCache<K,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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheServiceImpl

public CacheServiceImpl(InitParams params)
                 throws Exception
Throws:
Exception

CacheServiceImpl

public CacheServiceImpl(InitParams params,
                        ExoCacheFactory factory)
                 throws Exception
Throws:
Exception
Method Detail

addExoCacheConfig

public void addExoCacheConfig(ComponentPlugin plugin)

addExoCacheConfig

public void addExoCacheConfig(ExoCacheConfigPlugin plugin)
Description copied from interface: CacheService
Adds a cache configuration plugin.

Specified by:
addExoCacheConfig in interface CacheService
Parameters:
plugin - the plugin

getCacheInstance

public <K extends Serializable,V> ExoCache<K,V> getCacheInstance(String region)
Description copied from interface: CacheService
Returns a specific cache instance.

Specified by:
getCacheInstance in interface CacheService
Type Parameters:
K - the key type
V - the value type
Parameters:
region - the cache region
Returns:
the cache

unregisterCacheInstance

protected void unregisterCacheInstance(String region)
Unregisters the cache instance corresponding to the given region

Parameters:
region - the region for which we want to unregister the cache instance

getConfigId

protected String getConfigId(String region)
Gives the configuration id from the name of the region


getAllCacheInstances

public Collection<ExoCache<? extends Serializable,?>> getAllCacheInstances()
Description copied from interface: CacheService
Returns a collection of all the cache instances.

Specified by:
getAllCacheInstances in interface CacheService
Returns:
all the caches

eXo Kernel :: Component :: Cache Service 2.4.10-UXP01

Copyright © 2014 eXo Platform SAS. All Rights Reserved.