public class FileWatcher
extends java.lang.Thread
Constructor and Description |
---|
FileWatcher(java.io.File folder,
ErrorLogger errorLogger) |
FileWatcher(java.nio.file.Path watchedPath,
ErrorLogger errorLogger) |
Modifier and Type | Method and Description |
---|---|
void |
addToWatchlist(WatchedFile watchedFile) |
void |
interrupt() |
boolean |
isRunning() |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public FileWatcher(java.io.File folder, ErrorLogger errorLogger)
public FileWatcher(java.nio.file.Path watchedPath, ErrorLogger errorLogger)
public void addToWatchlist(WatchedFile watchedFile)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void interrupt()
interrupt
in class java.lang.Thread
public boolean isRunning()