Package org.elasticsearch.watcher
Interface ResourceWatcher
-
- All Known Implementing Classes:
AbstractResourceWatcher,FileWatcher
public interface ResourceWatcherAbstract resource watcher interface.Different resource watchers can be registered with
ResourceWatcherServiceto be called periodically in order to check for changes in different external resources.
-
-
Method Summary
Modifier and Type Method Description voidcheckAndNotify()Called periodically byResourceWatcherServiceso resource watcher can check the resourcevoidinit()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.IOExceptionCalled periodically byResourceWatcherServiceso resource watcher can check the resource- Throws:
java.io.IOException
-
-