public class FileWatcherFileSystemService extends Object implements FileWatcherService
| Constructor and Description |
|---|
FileWatcherFileSystemService(ScheduledExecutorService exec,
org.epics.util.time.TimeDuration scanRate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWatcher(File file,
Runnable callback)
Registers a file for updates.
|
void |
removeWatcher(File file,
Runnable callback)
Unregisters a file for updates.
|
public FileWatcherFileSystemService(ScheduledExecutorService exec, org.epics.util.time.TimeDuration scanRate)
public void addWatcher(File file, Runnable callback)
FileWatcherServiceaddWatcher in interface FileWatcherServicefile - a filecallback - called when the file changespublic void removeWatcher(File file, Runnable callback)
FileWatcherServiceremoveWatcher in interface FileWatcherServicefile - a filecallback - no longer called when the file changesCopyright © 2010–2014. All rights reserved.