Package org.codelibs.fess.helper
Class AbstractConfigHelper
java.lang.Object
org.codelibs.fess.helper.AbstractConfigHelper
- Direct Known Subclasses:
KeyMatchHelper,LabelTypeHelper,PathMappingHelper,RelatedContentHelper,RelatedQueryHelper
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intload()Load the configuration.voidsetReloadInterval(long reloadInterval) Set the interval for reloading.voidupdate()Update the configuration.protected voidWait for the next reloading.
-
Field Details
-
reloadInterval
protected long reloadIntervalThe 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.
-