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 Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Service that periodically run CleanUpQueryCacheRegionStrategy to clean "queryCacheRegion" cache region.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCleanUpQueryCacheRegionService(CleanUpQueryCacheRegionStrategy cleanUpQueryCacheRegionStrategy) Creates new instance of the DefaultCleanUpQueryCacheRegionService service. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCleans "queryCacheRegion" cache regionvoiddestroy()boolean
-
Field Details
-
CFG_CACHE_CLEAN_INTERVAL
- See Also:
-
CFG_CACHE_CLEAN_ENABLED
- See Also:
-
DEFAULT_CACHE_CLEAN_INTERVAL_SECONDS
public static final int DEFAULT_CACHE_CLEAN_INTERVAL_SECONDS- See Also:
-
DEFAULT_CACHE_CLEAN_ENABLED
public static final boolean DEFAULT_CACHE_CLEAN_ENABLED- See Also:
-
-
Constructor Details
-
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 Details
-
clearCache
public void clearCache()Cleans "queryCacheRegion" cache region -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
isEnabled
public boolean isEnabled() -
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-