public class FileWatcher
extends java.lang.Thread
Constructor and Description |
---|
FileWatcher(java.io.File folder,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
FileWatcher(java.nio.file.Path watchedPath,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
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, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public FileWatcher(java.nio.file.Path watchedPath, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
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()