public class CacheFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CFG_AUTO_DELAY_EXPIRATION_KEY |
static String |
CFG_AVERAGE_ENTRY_SIZE_KEY |
static String |
CFG_CACHE_CLASS_KEY |
static String |
CFG_CACHE_TYPE_KEY |
static String |
CFG_CAPACITY_KEY |
static String |
CFG_CLEAR_CACHE_ON_INIT_KEY |
static String |
CFG_DEFAULT_TIME_TO_LIVE_KEY |
static String |
CFG_FILE_PREFIX_KEY |
static String |
CFG_FOLDER_KEY |
static String |
CFG_LONGKEYMEMORY_KEY |
static String |
CFG_MAX_CACHE_SIZE_KEY |
static String |
CFG_MAX_ENTRY_SIZE_KEY |
static String |
CFG_MEMORY_KEY |
static String |
CFG_PERSISTENT_KEY |
static String |
CFG_SECURE_KEY |
static String |
CFG_SINGLETON_KEY |
static String |
CFG_STORAGE_CLASS_KEY |
static String |
CFG_STRINGKEYMEMORY_KEY |
Modifier and Type | Method and Description |
---|---|
void |
finalize()
Release all cache factory resources.
|
Hashtable |
getAllCaches() |
ICache |
getCache(String cacheID) |
ICache |
getCache(String cacheID,
boolean useDefault) |
ICache |
getCache(String cacheID,
Properties properties) |
ICache |
getCache(String configID,
String cacheID) |
ICache |
getCache(String configID,
String cacheID,
boolean useDefault) |
ICache |
getCacheRaw(String cacheId)
Gets the cache with the given id out of all caches.
|
static CacheFactory |
getInstance() |
static String |
getUniqueCacheID() |
protected static void |
refreshCaches()
Tell the CacheFactory that the caches have to be refreshed
|
void |
removeCache(String configID,
ICache cache,
boolean useDefault)
Removes the cache instance unless it's Persistent or Singleton.
|
static void |
resetFactory()
Only for testing purposes.
|
public static final String CFG_CACHE_CLASS_KEY
public static final String CFG_CACHE_TYPE_KEY
public static final String CFG_CAPACITY_KEY
public static final String CFG_MAX_CACHE_SIZE_KEY
public static final String CFG_AVERAGE_ENTRY_SIZE_KEY
public static final String CFG_MAX_ENTRY_SIZE_KEY
public static final String CFG_STORAGE_CLASS_KEY
public static final String CFG_FOLDER_KEY
public static final String CFG_FILE_PREFIX_KEY
public static final String CFG_SECURE_KEY
public static final String CFG_CLEAR_CACHE_ON_INIT_KEY
public static final String CFG_PERSISTENT_KEY
public static final String CFG_MEMORY_KEY
public static final String CFG_LONGKEYMEMORY_KEY
public static final String CFG_STRINGKEYMEMORY_KEY
public static final String CFG_DEFAULT_TIME_TO_LIVE_KEY
public static final String CFG_AUTO_DELAY_EXPIRATION_KEY
public static final String CFG_SINGLETON_KEY
public static CacheFactory getInstance() throws CacheException
CacheException
- Exception raised in failure situationpublic static String getUniqueCacheID()
public ICache getCache(String cacheID) throws CacheException
cacheID
- TBD: Description of the incoming method parameterCacheException
- Exception raised in failure situationpublic ICache getCache(String configID, String cacheID) throws CacheException
configID
- TBD: Description of the incoming method parametercacheID
- TBD: Description of the incoming method parameterCacheException
- Exception raised in failure situationpublic ICache getCache(String cacheID, boolean useDefault) throws CacheException
cacheID
- TBD: Description of the incoming method parameterCacheException
- Exception raised in failure situationpublic ICache getCache(String configID, String cacheID, boolean useDefault) throws CacheException
configID
- TBD: Description of the incoming method parametercacheID
- TBD: Description of the incoming method parameterCacheException
- Exception raised in failure situationpublic ICache getCache(String cacheID, Properties properties) throws CacheException
cacheID
- TBD: Description of the incoming method parameterproperties
- TBD: Description of the incoming method parameterCacheException
- Exception raised in failure situationpublic Hashtable getAllCaches()
public void removeCache(String configID, ICache cache, boolean useDefault) throws CacheException
configID
- The configurable which was used for instantiating this cachecache
- The cache to be removeduseDefault
- if there is no such configurable should we use the default one?CacheException
public ICache getCacheRaw(String cacheId)
public void finalize()
public static void resetFactory()
protected static void refreshCaches()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice