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
Modifier and TypeFieldDescriptionprotected String
protected FileStoreListener
protected TimerSource
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileWatcherBuilder
builder(CoreContext core)
Creates a new file watcher builder.void
stop()
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.
-