Class AbstractConfigHelper

java.lang.Object
org.codelibs.fess.helper.AbstractConfigHelper
Direct Known Subclasses:
KeyMatchHelper, LabelTypeHelper, PathMappingHelper, RelatedContentHelper, RelatedQueryHelper

public abstract class AbstractConfigHelper extends Object
The abstract helper for configuration. This class provides a basic framework for managing configurations that can be reloaded. It includes functionality for updating configurations in a separate thread and controlling the reloading interval.
  • Field Details

    • reloadInterval

      protected long reloadInterval
      The interval for reloading.
  • Constructor Details

    • AbstractConfigHelper

      public AbstractConfigHelper()
      Default constructor.
  • Method Details

    • update

      public void update()
      Update the configuration.
    • waitForNext

      protected void waitForNext()
      Wait for the next reloading.
    • load

      public abstract int load()
      Load the configuration.
      Returns:
      The number of loaded configurations.
    • setReloadInterval

      public void setReloadInterval(long reloadInterval)
      Set the interval for reloading.
      Parameters:
      reloadInterval - The interval for reloading.