Class WebClientCacheManager

java.lang.Object
com.saperion.ngc.cache.WebClientCacheManager

public final class WebClientCacheManager extends Object
Singleton manager for web client caches.
  • Method Details

    • 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(String name) throws com.saperion.cache.exception.CacheException
      Returns the cache with the specified name.
      Type Parameters:
      Key - type of key used in cache
      Entry - 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