类 JCacheCacheManager

    • 构造器详细资料

      • JCacheCacheManager

        public JCacheCacheManager​(javax.cache.CacheManager cacheManager)
        Create a new JCacheCacheManager for the given backing JCache javax.cache.CacheManager.
        参数:
        cacheManager - the backing JCache javax.cache.CacheManager
    • 方法详细资料

      • setCacheManager

        public void setCacheManager​(javax.cache.CacheManager cacheManager)
        Set the backing JCache javax.cache.CacheManager.
      • getCacheManager

        public javax.cache.CacheManager getCacheManager()
        Return the backing JCache javax.cache.CacheManager.
      • setAllowNullValues

        public void setAllowNullValues​(boolean allowNullValues)
        Specify whether to accept and convert null values for all caches in this cache manager.

        Default is "true", despite JSR-107 itself not supporting null values. An internal holder object will be used to store user-level nulls.

      • isAllowNullValues

        public boolean isAllowNullValues()
        Return whether this cache manager accepts and converts null values for all of its caches.
      • getMissingCache

        protected Cache getMissingCache​(String name)
        从类复制的说明: AbstractCacheManager
        Return a missing cache with the specified name, or null if such a cache does not exist or could not be created on demand.

        Caches may be lazily created at runtime if the native provider supports it. If a lookup by name does not yield any result, an AbstractCacheManager subclass gets a chance to register such a cache at runtime. The returned cache will be automatically added to this cache manager.

        覆盖:
        getMissingCache 在类中 AbstractCacheManager
        参数:
        name - the name of the cache to retrieve
        返回:
        the missing cache, or null if no such cache exists or could be created on demand
        另请参阅:
        AbstractCacheManager.getCache(String)