Package com.saperion.ngc.cache
Class WebClientCacheManager
- java.lang.Object
-
- com.saperion.ngc.cache.WebClientCacheManager
-
public final class WebClientCacheManager extends java.lang.Object
Singleton manager for web client caches.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <Key,Entry extends com.saperion.cache.data.CacheEntry<Key>>
com.saperion.cache.Cache<Key,Entry>getCache(java.lang.String name)
Returns the cache with the specified name.static WebClientCacheManager
getInstance()
com.saperion.cache.CacheManager
getManager()
void
shutdown()
Shuts down this CacheManager and thus clears all caches.
-
-
-
Method Detail
-
getInstance
public static WebClientCacheManager getInstance()
- Returns:
- singleton instance
-
getCache
public <Key,Entry extends com.saperion.cache.data.CacheEntry<Key>> com.saperion.cache.Cache<Key,Entry> getCache(java.lang.String name) throws com.saperion.cache.exception.CacheException
Returns the cache with the specified name.- Type Parameters:
Key
- type of key used in cacheEntry
- type of entry used in cache- Parameters:
name
- name of the cache- Returns:
- cache with the specified name
- Throws:
com.saperion.cache.exception.CacheException
- when getting the cache failed
-
shutdown
public void shutdown()
Shuts down this CacheManager and thus clears all caches.
-
getManager
public com.saperion.cache.CacheManager getManager()
- Returns:
- the nested
CacheManager
instance
-
-