Class FileWatcher.FileSystemContext
- java.lang.Object
-
- com.g2forge.alexandria.java.io.watch.FileWatcher.FileSystemContext
-
- Enclosing class:
- FileWatcher
protected static class FileWatcher.FileSystemContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FileSystem
fileSystem
protected Map<WatchKey,FileWatcher.WatchValue>
keys
protected WatchService
watchService
-
Constructor Summary
Constructors Constructor Description FileSystemContext(FileSystem fileSystem, WatchService watchService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSystem
getFileSystem()
Map<WatchKey,FileWatcher.WatchValue>
getKeys()
WatchService
getWatchService()
String
toString()
ICloseable
watch(Path path, FileWatcher.IWatchHandler handler, WatchEvent.Kind<?>... kinds)
-
-
-
Field Detail
-
fileSystem
protected final FileSystem fileSystem
-
watchService
protected final WatchService watchService
-
keys
protected final Map<WatchKey,FileWatcher.WatchValue> keys
-
-
Constructor Detail
-
FileSystemContext
@ConstructorProperties({"fileSystem","watchService"}) public FileSystemContext(FileSystem fileSystem, WatchService watchService)
-
-
Method Detail
-
watch
public ICloseable watch(Path path, FileWatcher.IWatchHandler handler, WatchEvent.Kind<?>... kinds)
-
getFileSystem
public FileSystem getFileSystem()
-
getWatchService
public WatchService getWatchService()
-
getKeys
public Map<WatchKey,FileWatcher.WatchValue> getKeys()
-
-