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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
checkAndNotify()
Called periodically byResourceWatcherService
so resource watcher can check the resourcevoid
init()
Called once when the resource watcher is added toResourceWatcherService
-
-
-
Method Detail
-
init
void init() throws java.io.IOException
Called once when the resource watcher is added toResourceWatcherService
- Throws:
java.io.IOException
-
checkAndNotify
void checkAndNotify() throws java.io.IOException
Called periodically byResourceWatcherService
so resource watcher can check the resource- Throws:
java.io.IOException
-
-