public abstract class AbstractFileWatcher
extends java.lang.Thread
Constructor and Description |
---|
AbstractFileWatcher() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doOnCreate(java.nio.file.WatchEvent<java.nio.file.Path> event,
java.nio.file.Path dir) |
protected abstract void |
doOnDelete(java.nio.file.WatchEvent<java.nio.file.Path> event,
java.nio.file.Path dir) |
protected abstract void |
doOnModify(java.nio.file.WatchEvent<java.nio.file.Path> event,
java.nio.file.Path dir) |
boolean |
isStopped() |
void |
run() |
protected void |
setWatchingDirectories(java.util.Collection<java.nio.file.Path> watchingDirectories) |
void |
stopThread() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public boolean isStopped()
public void stopThread()
protected void setWatchingDirectories(java.util.Collection<java.nio.file.Path> watchingDirectories)
protected abstract void doOnDelete(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)
protected abstract void doOnModify(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)
protected abstract void doOnCreate(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Copyright © 2001-2018 Jalios SA. All Rights Reserved.