public abstract class CacheService extends JahiaService
settingsBean| Constructor and Description |
|---|
CacheService() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
flushAllCaches()
Flush all the cache entries of all the registered caches.
|
abstract <K,V> Cache<K,V> |
getCache(String name) |
abstract <K,V> Cache<K,V> |
getCache(String name,
boolean forceCreation)
Returns the requested cache or creates it if it does not exist yet and
forceCreation is set to true. |
abstract Map<String,CacheProvider> |
getCacheProviders() |
abstract Set<String> |
getNames()
Returns an iterator of all the cache names.
|
abstract void |
setCacheProviders(Map<String,CacheProvider> cacheProviders) |
getSettingsBean, setSettingsBean, start, stoppublic abstract <K,V> Cache<K,V> getCache(String name, boolean forceCreation) throws JahiaInitializationException
Returns the requested cache or creates it if it does not exist yet and forceCreation is set to true.
When the name is null the cache creation is canceled and a
null instance will be returned.
name - the cache regionforceCreation - do we need to create a new cache if it does not exist yet?JahiaInitializationException - when the cache could not be initializedpublic abstract Set<String> getNames()
Returns an iterator of all the cache names.
public abstract void flushAllCaches()
Flush all the cache entries of all the registered caches.
Use this method with caution as it may take a lot of CPU time, because the method is synchronized and each accessed cache has to be synchronized too.
public abstract Map<String,CacheProvider> getCacheProviders()
public abstract void setCacheProviders(Map<String,CacheProvider> cacheProviders)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.