Constructor and Description |
---|
FileMonitor(File rootDir,
Long interval,
FileChangesListener listener)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
FileChangesListener |
getListener() |
File |
getRoot() |
void |
run() |
cancel, scheduledExecutionTime
public FileMonitor(File rootDir, Long interval, FileChangesListener listener)
interval
- The interval between executions of the task, in milliseconds.public File getRoot()
public FileChangesListener getListener()
public void run()
run
in interface Runnable
run
in class TimerTask
TimerTask.run()
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.