org.apache.sling.installer.provider.file.impl
Class FileMonitor
java.lang.Object
java.util.TimerTask
org.apache.sling.installer.provider.file.impl.FileMonitor
- All Implemented Interfaces:
- Runnable
public class FileMonitor
- extends TimerTask
This class is a monitor for the file system
that periodically checks for changes.
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileMonitor
public FileMonitor(File rootDir,
Long interval,
FileChangesListener listener)
- Creates a new instance of this class.
- Parameters:
interval
- The interval between executions of the task, in milliseconds.
run
public void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in class TimerTask
- See Also:
TimerTask.run()
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.