Package com.codingchili.core.files
Class FileWatcher
java.lang.Object
com.codingchili.core.files.FileWatcher
Watches changes to files in a registered directory and all its subdirectories.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected FileStoreListenerprotected TimerSource -
Method Summary
Modifier and TypeMethodDescriptionstatic FileWatcherBuilderbuilder(CoreContext core)Creates a new file watcher builder.voidstop()Stops the filewatcher.
-
Field Details
-
listener
-
directory
-
rate
-
-
Method Details
-
builder
Creates a new file watcher builder.- Parameters:
core- the core context to run on.- Returns:
- a new builder instance.
-
stop
public void stop()Stops the filewatcher.
-