Package org.elasticsearch.watcher
Interface ResourceWatcher
- All Known Implementing Classes:
AbstractResourceWatcher
,FileWatcher
public interface ResourceWatcher
Abstract resource watcher interface.
Different resource watchers can be registered with ResourceWatcherService
to be called
periodically in order to check for changes in different external resources.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called periodically byResourceWatcherService
so resource watcher can check the resourcevoid
init()
Called once when the resource watcher is added toResourceWatcherService
-
Method Details
-
init
Called once when the resource watcher is added toResourceWatcherService
- Throws:
IOException
-
checkAndNotify
Called periodically byResourceWatcherService
so resource watcher can check the resource- Throws:
IOException
-