public final class DefaultCacheManager extends Object implements CacheManager
| Constructor and Description |
|---|
DefaultCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cacheExists(String name)
Checks if cache name exists
|
void |
clearAllEntries()
Clears all available caches.
|
Cache |
getCache(String name)
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 name,
int maxElementsInMemory)
Puts cache object into store
|
public Collection<Cache> getCaches()
getCaches in interface CacheManagerpublic Cache getCache(String name) throws MappingException
getCache in interface CacheManagername - unique cache nameMappingException - exception is thrown if no cache foundpublic Cache putCache(String name, int maxElementsInMemory)
putCache in interface CacheManagername - cache name to storemaxElementsInMemory - maximum number of objects to store in cachepublic Collection<String> getCacheNames()
getCacheNames in interface CacheManagerpublic void clearAllEntries()
clearAllEntries in interface CacheManagerpublic boolean cacheExists(String name)
cacheExists in interface CacheManagername - cache name to findCopyright © 2005–2021 dozer. All rights reserved.