@ApiStatus.Internal public abstract class FileSystemWatcherImpl extends java.lang.Object implements FileSystemWatcher
FileSystemWatcher.WatchEventListener| Modifier and Type | Field and Description |
|---|---|
protected FileSystemWatcher.WatchEventListener |
watchEventListener |
protected java.util.Map<java.nio.file.WatchKey,java.nio.file.Path> |
watchKeyPath |
protected java.nio.file.WatchService |
watchService |
| Modifier | Constructor and Description |
|---|---|
protected |
FileSystemWatcherImpl(FileSystemWatcher.WatchEventListener watchEventListener,
java.lang.String name) |
protected |
FileSystemWatcherImpl(FileSystemWatcher.WatchEventListener watchEventListener,
java.util.concurrent.ThreadFactory threadFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
destroy() |
protected java.nio.file.Path |
getPath(java.nio.file.WatchKey key,
java.nio.file.WatchEvent<java.nio.file.Path> watchEvent) |
protected void |
onEvent(java.nio.file.WatchKey key,
java.nio.file.WatchEvent<java.nio.file.Path> watchEvent,
int count) |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewDirectoryTreeWatcher, newDirectoryTreeWatcher, newDirectoryWatcher, newDirectoryWatcher, newFileWatcher, newFileWatcherprotected final java.nio.file.WatchService watchService
protected final FileSystemWatcher.WatchEventListener watchEventListener
protected final java.util.Map<java.nio.file.WatchKey,java.nio.file.Path> watchKeyPath
protected FileSystemWatcherImpl(FileSystemWatcher.WatchEventListener watchEventListener, java.util.concurrent.ThreadFactory threadFactory) throws java.io.IOException
java.io.IOExceptionprotected FileSystemWatcherImpl(FileSystemWatcher.WatchEventListener watchEventListener, java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic void stop()
stop in interface FileSystemWatcherprotected void destroy()
protected void onEvent(java.nio.file.WatchKey key,
java.nio.file.WatchEvent<java.nio.file.Path> watchEvent,
int count)
protected java.nio.file.Path getPath(java.nio.file.WatchKey key,
java.nio.file.WatchEvent<java.nio.file.Path> watchEvent)