Package org.elasticsearch.watcher
Interface ResourceWatcher
-
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
All Methods Instance Methods Abstract Methods 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 IOException
Called once when the resource watcher is added toResourceWatcherService- Throws:
IOException
-
checkAndNotify
void checkAndNotify() throws IOExceptionCalled periodically byResourceWatcherServiceso resource watcher can check the resource- Throws:
IOException
-
-