public interface CacheManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
cacheExists(String cacheName)
Checks if cache name exists
|
void |
clearAllEntries()
Clears all available caches.
|
Cache |
getCache(String cacheName)
Get cache object by name.
|
Collection<String> |
getCacheNames()
Returns a collection of all cache names
|
Collection<Cache> |
getCaches()
Returns a collection of all caches
|
Cache |
putCache(String cacheName,
int maximumSize)
Puts cache object into store
|
void clearAllEntries()
Collection<String> getCacheNames()
Collection<Cache> getCaches()
Cache getCache(String cacheName) throws MappingException
cacheName - unique cache nameMappingException - exception is thrown if no cache foundCache putCache(String cacheName, int maximumSize) throws MappingException
cacheName - cache name to storemaximumSize - maximum number of objects to store in cacheMappingException - exception is thrown if cache already existsboolean cacheExists(String cacheName)
cacheName - cache name to findCopyright © 2005–2021 dozer. All rights reserved.