public abstract class BasePortalCacheManager<K extends java.io.Serializable,V>
extends java.lang.Object
implements com.liferay.portal.kernel.cache.PortalCacheManager<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected AggregatedPortalCacheManagerListener |
aggregatedPortalCacheManagerListener |
protected PortalCacheListenerFactory |
portalCacheListenerFactory |
protected PortalCacheManagerListenerFactory<com.liferay.portal.kernel.cache.PortalCacheManager<K,V>> |
portalCacheManagerListenerFactory |
| Constructor and Description |
|---|
BasePortalCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll() |
protected abstract com.liferay.portal.kernel.cache.PortalCache<K,V> |
createPortalCache(PortalCacheConfiguration portalCacheConfiguration) |
void |
destroy() |
protected abstract void |
doClearAll() |
protected abstract void |
doDestroy() |
protected abstract void |
doRemovePortalCache(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache) |
com.liferay.portal.kernel.cache.PortalCache<K,V> |
fetchPortalCache(java.lang.String portalCacheName) |
com.liferay.portal.kernel.cache.PortalCache<K,V> |
getPortalCache(java.lang.String portalCacheName) |
com.liferay.portal.kernel.cache.PortalCache<K,V> |
getPortalCache(java.lang.String portalCacheName,
boolean mvcc) |
protected abstract PortalCacheManagerConfiguration |
getPortalCacheManagerConfiguration() |
java.util.Set<com.liferay.portal.kernel.cache.PortalCacheManagerListener> |
getPortalCacheManagerListeners() |
java.lang.String |
getPortalCacheManagerName() |
java.lang.String[] |
getTransactionalPortalCacheNames() |
protected void |
initialize() |
protected abstract void |
initPortalCacheManager() |
boolean |
isClusterAware() |
protected boolean |
isTransactionalPortalCache(java.lang.String portalCacheName) |
boolean |
isTransactionalPortalCacheEnabled() |
protected void |
reconfigPortalCache(PortalCacheManagerConfiguration portalCacheManagerConfiguration) |
boolean |
registerPortalCacheManagerListener(com.liferay.portal.kernel.cache.PortalCacheManagerListener portalCacheManagerListener) |
protected abstract void |
removeConfigurableEhcachePortalCacheListeners(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache) |
void |
removePortalCache(java.lang.String portalCacheName) |
void |
setClusterAware(boolean clusterAware) |
void |
setPortalCacheManagerName(java.lang.String portalCacheManagerName) |
void |
setTransactionalPortalCacheEnabled(boolean transactionalPortalCacheEnabled) |
void |
setTransactionalPortalCacheNames(java.lang.String[] transactionalPortalCacheNames) |
boolean |
unregisterPortalCacheManagerListener(com.liferay.portal.kernel.cache.PortalCacheManagerListener portalCacheManagerListener) |
void |
unregisterPortalCacheManagerListeners() |
protected final AggregatedPortalCacheManagerListener aggregatedPortalCacheManagerListener
protected PortalCacheListenerFactory portalCacheListenerFactory
protected PortalCacheManagerListenerFactory<com.liferay.portal.kernel.cache.PortalCacheManager<K extends java.io.Serializable,V>> portalCacheManagerListenerFactory
public void clearAll()
throws com.liferay.portal.kernel.cache.PortalCacheException
public void destroy()
public com.liferay.portal.kernel.cache.PortalCache<K,V> fetchPortalCache(java.lang.String portalCacheName)
public com.liferay.portal.kernel.cache.PortalCache<K,V> getPortalCache(java.lang.String portalCacheName) throws com.liferay.portal.kernel.cache.PortalCacheException
public com.liferay.portal.kernel.cache.PortalCache<K,V> getPortalCache(java.lang.String portalCacheName, boolean mvcc) throws com.liferay.portal.kernel.cache.PortalCacheException
public java.util.Set<com.liferay.portal.kernel.cache.PortalCacheManagerListener> getPortalCacheManagerListeners()
public java.lang.String getPortalCacheManagerName()
public java.lang.String[] getTransactionalPortalCacheNames()
public boolean isClusterAware()
public boolean isTransactionalPortalCacheEnabled()
public boolean registerPortalCacheManagerListener(com.liferay.portal.kernel.cache.PortalCacheManagerListener portalCacheManagerListener)
public void removePortalCache(java.lang.String portalCacheName)
public void setClusterAware(boolean clusterAware)
public void setPortalCacheManagerName(java.lang.String portalCacheManagerName)
public void setTransactionalPortalCacheEnabled(boolean transactionalPortalCacheEnabled)
public void setTransactionalPortalCacheNames(java.lang.String[] transactionalPortalCacheNames)
public boolean unregisterPortalCacheManagerListener(com.liferay.portal.kernel.cache.PortalCacheManagerListener portalCacheManagerListener)
public void unregisterPortalCacheManagerListeners()
protected abstract com.liferay.portal.kernel.cache.PortalCache<K,V> createPortalCache(PortalCacheConfiguration portalCacheConfiguration)
protected abstract void doClearAll()
protected abstract void doDestroy()
protected abstract void doRemovePortalCache(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache)
protected abstract PortalCacheManagerConfiguration getPortalCacheManagerConfiguration()
protected void initialize()
protected abstract void initPortalCacheManager()
protected boolean isTransactionalPortalCache(java.lang.String portalCacheName)
protected void reconfigPortalCache(PortalCacheManagerConfiguration portalCacheManagerConfiguration)