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, setWatchingpublic WinNTWatcherStrategy(FileSystemWatcher fileSystemWatcher)
public void start()
throws FileSystemException
WatcherStrategystart in class WatcherStrategyFileSystemExceptionpublic 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
WatcherStrategystop in class WatcherStrategyFileSystemException