Class AbstractSchedulingContentCacheController

java.lang.Object
org.n52.iceland.cache.ctrl.AbstractSchedulingContentCacheController
All Implemented Interfaces:
ContentCacheController, Destroyable
Direct Known Subclasses:
ContentCacheControllerImpl

@Configurable public abstract class AbstractSchedulingContentCacheController extends Object implements ContentCacheController, Destroyable
Abstract class for capabilities cache controller implementations that schedules a complete cache update at a configured interval.
Since:
1.0.0
  • Constructor Details

    • AbstractSchedulingContentCacheController

      public AbstractSchedulingContentCacheController()
  • Method Details

    • setCronExpression

      @Setting("service.capabilitiesCacheUpdate") public void setCronExpression(String cronExpression)
    • setStaticCapabilitiesProvider

      @Inject public void setStaticCapabilitiesProvider(Optional<StaticCapabilitiesProvider> staticCapabilitiesProvider)
    • setUpdateInterval

      public void setUpdateInterval(int interval) throws ConfigurationError
      Throws:
      ConfigurationError
    • destroy

      public void destroy()
      Specified by:
      destroy in interface Destroyable
    • isInitialized

      protected boolean isInitialized()
      Returns:
      the initialized
    • setInitialized

      protected void setInitialized(boolean initialized)
      Parameters:
      initialized - the initialized to set