001
014
015 package com.liferay.portal.kernel.cache;
016
017 import com.liferay.portal.kernel.nio.intraband.proxy.annotation.Proxy;
018
019 import java.io.Serializable;
020
021 import java.net.URL;
022
023 import java.util.Set;
024
025
028 public interface PortalCacheManager<K extends Serializable, V> {
029
030 public static final String PORTAL_CACHE_MANAGER_NAME =
031 "portal.cache.manager.name";
032
033 public static final String PORTAL_CACHE_MANAGER_TYPE =
034 "portal.cache.manager.type";
035
036 @Proxy
037 public void clearAll() throws PortalCacheException;
038
039 public void destroy();
040
041 public PortalCache<K, V> getPortalCache(String portalCacheName)
042 throws PortalCacheException;
043
044 public PortalCache<K, V> getPortalCache(
045 String portalCacheName, boolean blocking)
046 throws PortalCacheException;
047
048 public Set<PortalCacheManagerListener> getPortalCacheManagerListeners();
049
050 public String getPortalCacheManagerName();
051
052 public boolean isClusterAware();
053
054 @Proxy
055 public void reconfigurePortalCaches(URL configurationURL);
056
057 public boolean registerPortalCacheManagerListener(
058 PortalCacheManagerListener portalCacheManagerListener);
059
060 public void removePortalCache(String portalCacheName);
061
062 public boolean unregisterPortalCacheManagerListener(
063 PortalCacheManagerListener portalCacheManagerListener);
064
065 public void unregisterPortalCacheManagerListeners();
066
067 }