Package com.saperion.ngc.cache
Class WebClientCacheManager
java.lang.Object
com.saperion.ngc.cache.WebClientCacheManager
Singleton manager for web client caches.
-
Method Summary
Modifier and TypeMethodDescription<Key,
Entry extends com.saperion.cache.data.CacheEntry<Key>>
com.saperion.cache.Cache<Key,Entry> Returns the cache with the specified name.static WebClientCacheManager
com.saperion.cache.CacheManager
void
shutdown()
Shuts down this CacheManager and thus clears all caches.
-
Method Details
-
getInstance
- Returns:
- singleton instance
-
getCache
public <Key,Entry extends com.saperion.cache.data.CacheEntry<Key>> com.saperion.cache.Cache<Key,Entry> getCache(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
-