public abstract class BaseTemplateResourceCache
extends Object
implements com.liferay.portal.kernel.template.TemplateResourceCache
Modifier and Type | Field and Description |
---|---|
protected static com.liferay.portal.kernel.template.TemplateResource |
DUMMY_TEMPLATE_RESOURCE |
Constructor and Description |
---|
BaseTemplateResourceCache() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected void |
destroy() |
<T> com.liferay.portal.kernel.cache.PortalCache<com.liferay.portal.kernel.template.TemplateResource,T> |
getSecondLevelPortalCache() |
com.liferay.portal.kernel.template.TemplateResource |
getTemplateResource(String templateId) |
protected void |
init(long modificationCheckInterval,
com.liferay.portal.kernel.cache.MultiVMPool multiVMPool,
com.liferay.portal.kernel.cache.SingleVMPool singleVMPool,
String portalCacheName,
String secondLevelPortalCacheName) |
boolean |
isEnabled() |
void |
put(String templateId,
com.liferay.portal.kernel.template.TemplateResource templateResource) |
void |
remove(String templateId) |
protected void |
setModificationCheckInterval(long modificationCheckInterval) |
protected static final com.liferay.portal.kernel.template.TemplateResource DUMMY_TEMPLATE_RESOURCE
public void clear()
clear
in interface com.liferay.portal.kernel.template.TemplateResourceCache
public <T> com.liferay.portal.kernel.cache.PortalCache<com.liferay.portal.kernel.template.TemplateResource,T> getSecondLevelPortalCache()
public com.liferay.portal.kernel.template.TemplateResource getTemplateResource(String templateId)
getTemplateResource
in interface com.liferay.portal.kernel.template.TemplateResourceCache
public boolean isEnabled()
isEnabled
in interface com.liferay.portal.kernel.template.TemplateResourceCache
public void put(String templateId, com.liferay.portal.kernel.template.TemplateResource templateResource)
put
in interface com.liferay.portal.kernel.template.TemplateResourceCache
public void remove(String templateId)
remove
in interface com.liferay.portal.kernel.template.TemplateResourceCache
protected void destroy()
protected void init(long modificationCheckInterval, com.liferay.portal.kernel.cache.MultiVMPool multiVMPool, com.liferay.portal.kernel.cache.SingleVMPool singleVMPool, String portalCacheName, String secondLevelPortalCacheName)
protected void setModificationCheckInterval(long modificationCheckInterval)