Class CmsStoredContentInfoCacheConfiguration

java.lang.Object
org.opencms.configuration.CmsStoredContentInfoCacheConfiguration

Configuration for the stored content info cache.

  • Field Details

  • Constructor Details

  • Method Details

    • getFactoryClass

      Returns the factory class name.

      Returns:
      the factory class name
    • getSize

      public int getSize()
      Returns the cache size.

      Returns:
      the cache size
    • getTtl

      public long getTtl()
      Returns the time to live in seconds.

      Returns:
      the time to live in seconds
    • initialize

      public void initialize(String factoryClass, String enabled, String size, String ttl)
      Initializes the configuration.

      Parameters:
      factoryClass - the factory class
      enabled - if the cache is enabled
      size - the maximum number of cached entries
      ttl - the time to live in seconds
    • isEnabled

      public boolean isEnabled()
      Returns if the cache is enabled.

      Returns:
      true if the cache is enabled
    • setFactoryClass

      public void setFactoryClass(String factoryClass)
      Sets the factory class name.

      Parameters:
      factoryClass - the factory class name