Constructor and Description |
---|
FilesystemAlterationMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(File pRoot,
FilesystemAlterationListener pListener) |
FilesystemAlterationListener[] |
getListenersFor(File pRoot) |
void |
removeListener(FilesystemAlterationListener pListener) |
void |
run() |
void |
setInterval(long pDelay)
Set the delay between calls to the observers.
|
void |
start() |
void |
stop() |
public void start()
public void stop()
public void setInterval(long pDelay)
pDelay
- the delay in milliseconds (default if not set 3000 ms)public void addListener(File pRoot, FilesystemAlterationListener pListener)
public void removeListener(FilesystemAlterationListener pListener)
public FilesystemAlterationListener[] getListenersFor(File pRoot)
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.