Liferay 7.0-ce-a2

com.liferay.portal.kernel.cache
Class AbstractPortalCacheManager<K extends Serializable,V>

java.lang.Object
  extended by 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>


Field Summary
protected  AggregatedPortalCacheManagerListener aggregatedPortalCacheManagerListener
           
protected  PortalCacheBootstrapLoaderFactory portalCacheBootstrapLoaderFactory
           
protected  PortalCacheListenerFactory portalCacheListenerFactory
           
protected  PortalCacheManagerListenerFactory<PortalCacheManager<K,V>> portalCacheManagerListenerFactory
           
protected  ConcurrentMap<String,PortalCache<K,V>> portalCaches
           
 
Fields inherited from interface com.liferay.portal.kernel.cache.PortalCacheManager
PORTAL_CACHE_MANAGER_NAME, PORTAL_CACHE_MANAGER_TYPE
 
Constructor Summary
AbstractPortalCacheManager()
           
 
Method Summary
 void clearAll()
           
protected abstract  PortalCache<K,V> createPortalCache(PortalCacheConfiguration portalCacheConfiguration)
           
 void destroy()
           
protected abstract  void doClearAll()
           
protected abstract  void doDestroy()
           
protected abstract  void doRemovePortalCache(String portalCacheName)
           
 PortalCache<K,V> getPortalCache(String portalCacheName)
           
 PortalCache<K,V> getPortalCache(String portalCacheName, boolean blocking)
           
protected abstract  PortalCacheManagerConfiguration getPortalCacheManagerConfiguration()
           
 Set<PortalCacheManagerListener> getPortalCacheManagerListeners()
           
 String getPortalCacheManagerName()
           
 String[] getTransactionalPortalCacheNames()
           
protected  void initialize()
           
protected abstract  void initPortalCacheManager()
           
 boolean isBlockingPortalCacheAllowed()
           
 boolean isClusterAware()
           
 boolean isPortalCacheBootstrapLoaderEnabled()
           
protected  boolean isTransactionalPortalCache(String portalCacheName)
           
 boolean isTransactionalPortalCacheEnabled()
           
protected  void reconfigPortalCache(PortalCacheManagerConfiguration portalCacheManagerConfiguration)
           
 boolean registerPortalCacheManagerListener(PortalCacheManagerListener portalCacheManagerListener)
           
 void removePortalCache(String portalCacheName)
           
 void setBlockingPortalCacheAllowed(boolean blockingPortalCacheAllowed)
           
 void setClusterAware(boolean clusterAware)
           
 void setMpiOnly(boolean mpiOnly)
           
 void setPortalCacheBootstrapLoaderEnabled(boolean portalCacheBootstrapLoaderEnabled)
           
 void setPortalCacheManagerName(String portalCacheManagerName)
           
 void setTransactionalPortalCacheEnabled(boolean transactionalPortalCacheEnabled)
           
 void setTransactionalPortalCacheNames(String[] transactionalPortalCacheNames)
           
 boolean unregisterPortalCacheManagerListener(PortalCacheManagerListener portalCacheManagerListener)
           
 void unregisterPortalCacheManagerListeners()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.cache.PortalCacheManager
reconfigurePortalCaches
 

Field Detail

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
Constructor Detail

AbstractPortalCacheManager

public AbstractPortalCacheManager()
Method Detail

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)

Liferay 7.0-ce-a2