Class 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.DisposableBean
    Service that periodically run CleanUpQueryCacheRegionStrategy to clean "queryCacheRegion" cache region.
    • 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:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • isEnabled

        public boolean isEnabled()
      • destroy

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