Class ResourceWatcherService

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, Releasable

    public class ResourceWatcherService
    extends AbstractLifecycleComponent
    Generic resource watcher service Other elasticsearch services can register their resource watchers with this service using add(ResourceWatcher) method. This service will call ResourceWatcher.checkAndNotify() method of all registered watcher periodically. The frequency of checks can be specified using resource.reload.interval setting, which defaults to 60s. The service can be disabled by setting resource.reload.enabled setting to false.