public class WinNTWatcherStrategy extends WatcherStrategy
ReadDirectoryChangesW
Win API function.
Platforms: WinNT (SP3 or later), Win2000, WinXP
Constructor and Description |
---|
WinNTWatcherStrategy(FileSystemWatcher fileSystemWatcher) |
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize()
Returns the buffer size in bytes.
|
void |
setBufferSize(int value)
Sets a new buffer size in bytes.
|
void |
start()
Starts watching.
|
void |
stop()
Stops watching.
|
getFileSystemWatcher, isWatching, setWatching
public WinNTWatcherStrategy(FileSystemWatcher fileSystemWatcher)
public void start() throws FileSystemException
WatcherStrategy
start
in class WatcherStrategy
FileSystemException
public void setBufferSize(int value)
BufferSize
determinates a number of bytes,
that will be allocated for ReadDirectoryChangesW
function to retrieve
file system evevents. By default this buffer is allocated with 100 Kb.value
- is a new buffer sizepublic int getBufferSize()
public void stop() throws FileSystemException
WatcherStrategy
stop
in class WatcherStrategy
FileSystemException