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 |
protected java.util.concurrent.ConcurrentMap<java.lang.String,com.liferay.portal.kernel.cache.PortalCache<K,V>> |
portalCaches |
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(java.lang.String portalCacheName) |
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 blocking)
Deprecated.
As of Athanasius (7.3.x), replaced by
getPortalCache(String) |
com.liferay.portal.kernel.cache.PortalCache<K,V> |
getPortalCache(java.lang.String portalCacheName,
boolean blocking,
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 |
isBlockingPortalCacheAllowed()
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
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 |
setBlockingPortalCacheAllowed(boolean blockingPortalCacheAllowed)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
void |
setClusterAware(boolean clusterAware) |
void |
setMpiOnly(boolean mpiOnly)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
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
@Deprecated public com.liferay.portal.kernel.cache.PortalCache<K,V> getPortalCache(java.lang.String portalCacheName, boolean blocking) throws com.liferay.portal.kernel.cache.PortalCacheException
getPortalCache(String)
public com.liferay.portal.kernel.cache.PortalCache<K,V> getPortalCache(java.lang.String portalCacheName, boolean blocking, 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()
@Deprecated public boolean isBlockingPortalCacheAllowed()
public boolean isClusterAware()
public boolean isTransactionalPortalCacheEnabled()
public boolean registerPortalCacheManagerListener(com.liferay.portal.kernel.cache.PortalCacheManagerListener portalCacheManagerListener)
public void removePortalCache(java.lang.String portalCacheName)
@Deprecated public void setBlockingPortalCacheAllowed(boolean blockingPortalCacheAllowed)
public void setClusterAware(boolean clusterAware)
@Deprecated public void setMpiOnly(boolean mpiOnly)
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(java.lang.String portalCacheName)
protected abstract PortalCacheManagerConfiguration getPortalCacheManagerConfiguration()
protected void initialize()
protected abstract void initPortalCacheManager()
protected boolean isTransactionalPortalCache(java.lang.String portalCacheName)
protected void reconfigPortalCache(PortalCacheManagerConfiguration portalCacheManagerConfiguration)