Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 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