Class DefaultCleanUpQueryCacheRegionService
- java.lang.Object
-
- de.hybris.platform.regioncache.region.impl.DefaultCleanUpQueryCacheRegionService
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public class DefaultCleanUpQueryCacheRegionService extends java.lang.Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBeanService that periodically run CleanUpQueryCacheRegionStrategy to clean "queryCacheRegion" cache region.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCFG_CACHE_CLEAN_ENABLEDstatic java.lang.StringCFG_CACHE_CLEAN_INTERVALstatic booleanDEFAULT_CACHE_CLEAN_ENABLEDstatic intDEFAULT_CACHE_CLEAN_INTERVAL_SECONDS
-
Constructor Summary
Constructors Constructor Description DefaultCleanUpQueryCacheRegionService(CleanUpQueryCacheRegionStrategy cleanUpQueryCacheRegionStrategy)Creates new instance of the DefaultCleanUpQueryCacheRegionService service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidclearCache()Cleans "queryCacheRegion" cache regionvoiddestroy()booleanisEnabled()
-
-
-
Field Detail
-
CFG_CACHE_CLEAN_INTERVAL
public static final java.lang.String CFG_CACHE_CLEAN_INTERVAL
- See Also:
- Constant Field Values
-
CFG_CACHE_CLEAN_ENABLED
public static final java.lang.String CFG_CACHE_CLEAN_ENABLED
- See Also:
- Constant Field Values
-
DEFAULT_CACHE_CLEAN_INTERVAL_SECONDS
public static final int DEFAULT_CACHE_CLEAN_INTERVAL_SECONDS
- See Also:
- Constant Field Values
-
DEFAULT_CACHE_CLEAN_ENABLED
public static final boolean DEFAULT_CACHE_CLEAN_ENABLED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultCleanUpQueryCacheRegionService
public DefaultCleanUpQueryCacheRegionService(CleanUpQueryCacheRegionStrategy cleanUpQueryCacheRegionStrategy)
Creates new instance of the DefaultCleanUpQueryCacheRegionService service.- Parameters:
cleanUpQueryCacheRegionStrategy- - implementation of CleanUpQueryCacheRegionStrategy that actually do clean up of "queryCacheRegion" cache region.
-
-
Method Detail
-
clearCache
public void clearCache()
Cleans "queryCacheRegion" cache region
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
isEnabled
public boolean isEnabled()
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
-