public interface CacheManager
Cache.| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAdditionalCaches()
Returns a list of all additional caches managed by
CacheManager. |
Cache |
getCache()
Returns the cache managed by this manager.
|
void |
init(Properties properties)
Called to initialize the cache manager from properties.
|
void |
invalidateAdditionalCache(String id)
Invalidates the additional cache with the given id.
|
void |
invalidateMainCache()
Invalidates the whole main cache.
|
void |
shutdown()
Shutdown hook that allows the cache manager to do any kind of clean-up operations.
|
List<String> getAdditionalCaches()
CacheManager.Cache getCache()
void init(Properties properties) throws CacheManagerInitializationException
properties - properties object that can contain cache manager specific settings to set up the
managerCacheManagerInitializationException - if the manager or underlying cache could not be initializedvoid invalidateAdditionalCache(String id) throws CacheException
id - id of the cacheCacheException - if id of the cache could not be found or invalidation failsvoid invalidateMainCache()
throws CacheException
CacheException - if invalidation failsvoid shutdown()
Copyright © 2019 Communote team. All rights reserved.