org.mmbase.util
Class FileWatcher.FileWatcherRunner
java.lang.Object
org.mmbase.util.FileWatcher.FileWatcherRunner
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- FileWatcher
static class FileWatcher.FileWatcherRunner
- extends Object
- implements Runnable
The one thread to handle all FileWatchers. In earlier implementation every FileWatcher had
it's own thread, but that is avoided now.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileWatcher.FileWatcherRunner
FileWatcher.FileWatcherRunner()
add
void add(FileWatcher f)
remove
void remove(FileWatcher f)
size
int size()
run
public void run()
- Main loop, will check every watched file every amount of time.
It will never stop, this thread is a daemon.
- Specified by:
run in interface Runnable
cancel
public void cancel()
MMBase 2.0-SNAPSHOT - null