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:
- MemoryPortalCacheManager
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 |
aggregatedCacheManagerListener
protected final AggregatedCacheManagerListener aggregatedCacheManagerListener
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>
getCache
public PortalCache<K,V> getCache(String portalCacheName)
throws PortalCacheException
- Specified by:
getCache in interface PortalCacheManager<K extends Serializable,V>
- Throws:
PortalCacheException
getCache
public PortalCache<K,V> getCache(String portalCacheName,
boolean blocking)
throws PortalCacheException
- Specified by:
getCache in interface PortalCacheManager<K extends Serializable,V>
- Throws:
PortalCacheException
getCacheManagerListeners
public Set<CacheManagerListener> getCacheManagerListeners()
- Specified by:
getCacheManagerListeners in interface PortalCacheManager<K extends Serializable,V>
getName
public String getName()
- Specified by:
getName in interface PortalCacheManager<K extends Serializable,V>
getTransactionalCacheNames
public String[] getTransactionalCacheNames()
isBlockingCacheAllowed
public boolean isBlockingCacheAllowed()
isBootstrapCacheLoaderEnabled
public boolean isBootstrapCacheLoaderEnabled()
isClusterAware
public boolean isClusterAware()
- Specified by:
isClusterAware in interface PortalCacheManager<K extends Serializable,V>
isTransactionalCacheEnabled
public boolean isTransactionalCacheEnabled()
registerCacheManagerListener
public boolean registerCacheManagerListener(CacheManagerListener cacheManagerListener)
- Specified by:
registerCacheManagerListener in interface PortalCacheManager<K extends Serializable,V>
removeCache
public void removeCache(String portalCacheName)
- Specified by:
removeCache in interface PortalCacheManager<K extends Serializable,V>
setBlockingCacheAllowed
public void setBlockingCacheAllowed(boolean blockingCacheAllowed)
setBootstrapCacheLoaderEnabled
public void setBootstrapCacheLoaderEnabled(boolean bootstrapCacheLoaderEnabled)
setClusterAware
public void setClusterAware(boolean clusterAware)
setMpiOnly
public void setMpiOnly(boolean mpiOnly)
setName
public void setName(String portalCacheManagerName)
setTransactionalCacheEnabled
public void setTransactionalCacheEnabled(boolean transactionalCacheEnabled)
setTransactionalCacheNames
public void setTransactionalCacheNames(String[] transactionalCacheNames)
unregisterCacheManagerListener
public boolean unregisterCacheManagerListener(CacheManagerListener cacheManagerListener)
- Specified by:
unregisterCacheManagerListener in interface PortalCacheManager<K extends Serializable,V>
unregisterCacheManagerListeners
public void unregisterCacheManagerListeners()
- Specified by:
unregisterCacheManagerListeners 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()
doRemoveCache
protected abstract void doRemoveCache(String portalCacheName)
getPortalCacheManagerConfiguration
protected abstract PortalCacheManagerConfiguration getPortalCacheManagerConfiguration()
getType
protected abstract String getType()
initialize
protected void initialize()
initPortalCacheManager
protected abstract void initPortalCacheManager()
isTransactionalPortalCache
protected boolean isTransactionalPortalCache(String portalCacheName)
reconfigPortalCache
protected void reconfigPortalCache(PortalCacheManagerConfiguration portalCacheManagerConfiguration)