public class HeadersPageCachingFilter extends net.sf.ehcache.constructs.web.filter.SimpleCachingHeadersPageCachingFilter implements CacheableService, PageEventListener
NAME
Constructor and Description |
---|
HeadersPageCachingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doInit(javax.servlet.FilterConfig filterConfig) |
void |
enableCache(boolean bEnable)
Enable the cache
|
int |
getCacheSize()
Gets the number of item currently in the cache.
|
String |
getInfos()
Returns cache infos
|
List<String> |
getKeys()
Gets all keys in the cache
|
int |
getMaxElements()
Returns maximum elements accepted into the cache
|
long |
getMemorySize()
Return the memory size
|
String |
getName()
Returns the Service name
|
long |
getTimeToLive()
Returns the time to live for objects in the cache
|
boolean |
isCacheEnable()
Gets the current cache status.
|
void |
processPageEvent(PageEvent event)
Process a page event
|
void |
resetCache()
Reset the cache.
|
public void doInit(javax.servlet.FilterConfig filterConfig)
doInit
in class net.sf.ehcache.constructs.web.filter.CachingFilter
public boolean isCacheEnable()
isCacheEnable
in interface CacheableService
public int getCacheSize()
getCacheSize
in interface CacheableService
public void resetCache()
resetCache
in interface CacheableService
public String getName()
getName
in interface LuteceService
public void enableCache(boolean bEnable)
enableCache
in interface CacheableService
bEnable
- true to enable, false to disablepublic List<String> getKeys()
getKeys
in interface CacheableService
public int getMaxElements()
getMaxElements
in interface CacheableService
public long getTimeToLive()
getTimeToLive
in interface CacheableService
public long getMemorySize()
getMemorySize
in interface CacheableService
public String getInfos()
getInfos
in interface CacheableService
public void processPageEvent(PageEvent event)
processPageEvent
in interface PageEventListener
event
- The event to processCopyright © 2020 City of Paris. All rights reserved.