com.liferay.portal.kernel.cache
Class AbstractPortalCacheManager<K extends Serializable,V>
java.lang.Object
com.liferay.portal.kernel.cache.AbstractPortalCacheManager<K,V>
- All Implemented Interfaces:
- PortalCacheManager<K,V>
- Direct Known Subclasses:
- TestPortalCacheManager
public abstract class AbstractPortalCacheManager<K extends Serializable,V>
- extends Object
- implements PortalCacheManager<K,V>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
aggregatedPortalCacheManagerListener
protected final AggregatedPortalCacheManagerListener aggregatedPortalCacheManagerListener
portalCacheBootstrapLoaderFactory
protected PortalCacheBootstrapLoaderFactory portalCacheBootstrapLoaderFactory
portalCacheListenerFactory
protected PortalCacheListenerFactory portalCacheListenerFactory
portalCacheManagerListenerFactory
protected PortalCacheManagerListenerFactory<PortalCacheManager<K extends Serializable,V>> portalCacheManagerListenerFactory
portalCaches
protected final ConcurrentMap<String,PortalCache<K extends Serializable,V>> portalCaches
AbstractPortalCacheManager
public AbstractPortalCacheManager()
clearAll
public void clearAll()
throws PortalCacheException
- Specified by:
clearAll in interface PortalCacheManager<K extends Serializable,V>
- Throws:
PortalCacheException
destroy
public void destroy()
- Specified by:
destroy in interface PortalCacheManager<K extends Serializable,V>
getPortalCache
public PortalCache<K,V> getPortalCache(String portalCacheName)
throws PortalCacheException
- Specified by:
getPortalCache in interface PortalCacheManager<K extends Serializable,V>
- Throws:
PortalCacheException
getPortalCache
public PortalCache<K,V> getPortalCache(String portalCacheName,
boolean blocking)
throws PortalCacheException
- Specified by:
getPortalCache in interface PortalCacheManager<K extends Serializable,V>
- Throws:
PortalCacheException
getPortalCacheManagerListeners
public Set<PortalCacheManagerListener> getPortalCacheManagerListeners()
- Specified by:
getPortalCacheManagerListeners in interface PortalCacheManager<K extends Serializable,V>
getPortalCacheManagerName
public String getPortalCacheManagerName()
- Specified by:
getPortalCacheManagerName in interface PortalCacheManager<K extends Serializable,V>
getTransactionalPortalCacheNames
public String[] getTransactionalPortalCacheNames()
isBlockingPortalCacheAllowed
public boolean isBlockingPortalCacheAllowed()
isClusterAware
public boolean isClusterAware()
- Specified by:
isClusterAware in interface PortalCacheManager<K extends Serializable,V>
isPortalCacheBootstrapLoaderEnabled
public boolean isPortalCacheBootstrapLoaderEnabled()
isTransactionalPortalCacheEnabled
public boolean isTransactionalPortalCacheEnabled()
registerPortalCacheManagerListener
public boolean registerPortalCacheManagerListener(PortalCacheManagerListener portalCacheManagerListener)
- Specified by:
registerPortalCacheManagerListener in interface PortalCacheManager<K extends Serializable,V>
removePortalCache
public void removePortalCache(String portalCacheName)
- Specified by:
removePortalCache in interface PortalCacheManager<K extends Serializable,V>
setBlockingPortalCacheAllowed
public void setBlockingPortalCacheAllowed(boolean blockingPortalCacheAllowed)
setClusterAware
public void setClusterAware(boolean clusterAware)
setMpiOnly
public void setMpiOnly(boolean mpiOnly)
setPortalCacheBootstrapLoaderEnabled
public void setPortalCacheBootstrapLoaderEnabled(boolean portalCacheBootstrapLoaderEnabled)
setPortalCacheManagerName
public void setPortalCacheManagerName(String portalCacheManagerName)
setTransactionalPortalCacheEnabled
public void setTransactionalPortalCacheEnabled(boolean transactionalPortalCacheEnabled)
setTransactionalPortalCacheNames
public void setTransactionalPortalCacheNames(String[] transactionalPortalCacheNames)
unregisterPortalCacheManagerListener
public boolean unregisterPortalCacheManagerListener(PortalCacheManagerListener portalCacheManagerListener)
- Specified by:
unregisterPortalCacheManagerListener in interface PortalCacheManager<K extends Serializable,V>
unregisterPortalCacheManagerListeners
public void unregisterPortalCacheManagerListeners()
- Specified by:
unregisterPortalCacheManagerListeners in interface PortalCacheManager<K extends Serializable,V>
createPortalCache
protected abstract PortalCache<K,V> createPortalCache(PortalCacheConfiguration portalCacheConfiguration)
doClearAll
protected abstract void doClearAll()
doDestroy
protected abstract void doDestroy()
doRemovePortalCache
protected abstract void doRemovePortalCache(String portalCacheName)
getPortalCacheManagerConfiguration
protected abstract PortalCacheManagerConfiguration getPortalCacheManagerConfiguration()
initialize
protected void initialize()
initPortalCacheManager
protected abstract void initPortalCacheManager()
isTransactionalPortalCache
protected boolean isTransactionalPortalCache(String portalCacheName)
reconfigPortalCache
protected void reconfigPortalCache(PortalCacheManagerConfiguration portalCacheManagerConfiguration)