Class FileWatcher
java.lang.Object
java.lang.Thread
com.djrapitops.plan.settings.upkeep.FileWatcher
- All Implemented Interfaces:
Runnable
Class for watching files for changes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionFileWatcher
(File folder, ErrorLogger errorLogger) FileWatcher
(Path watchedPath, ErrorLogger errorLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToWatchlist
(WatchedFile watchedFile) void
boolean
void
run()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield