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 Details

  • 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

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • isEnabled

      public boolean isEnabled()
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean