public abstract class WatcherStrategy
extends java.lang.Object
FileSystemWatcher
class.Constructor and Description |
---|
WatcherStrategy(FileSystemWatcher fileSystemWatcher)
Creates a strategy for a specified watcher
FileSystemWatcher |
Modifier and Type | Method and Description |
---|---|
FileSystemWatcher |
getFileSystemWatcher() |
protected boolean |
isWatching() |
protected void |
setWatching(boolean value) |
abstract void |
start()
Starts watching.
|
abstract void |
stop()
Stops watching.
|
public WatcherStrategy(FileSystemWatcher fileSystemWatcher)
FileSystemWatcher
fileSystemWatcher
- a wacher which will use this strategy.public FileSystemWatcher getFileSystemWatcher()
protected boolean isWatching()
protected void setWatching(boolean value)
public abstract void start() throws FileSystemException
FileSystemException
public abstract void stop() throws FileSystemException
FileSystemException