Constructor and Description |
---|
FileWatcher(File target,
Runnable action) |
Modifier and Type | Method and Description |
---|---|
void |
run()
check if target file has been touched and invoke
the action if it has
|
void |
schedule(int delay,
TimeUnit timeunit) |
public FileWatcher(File target, Runnable action) throws FileNotFoundException
FileNotFoundException
Copyright © 2010–2018 UNICORE. All rights reserved.