Package name.pachler.nio.file.impl
Class WindowsPathWatchService
java.lang.Object
name.pachler.nio.file.WatchService
name.pachler.nio.file.impl.PathWatchService
name.pachler.nio.file.impl.WindowsPathWatchService
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class name.pachler.nio.file.impl.PathWatchService
FLAG_ACCURATE, FLAG_FILTER_ENTRY_CREATE, FLAG_FILTER_ENTRY_DELETE, FLAG_FILTER_ENTRY_MODIFY, FLAG_FILTER_ENTRY_RENAME_FROM, FLAG_FILTER_ENTRY_RENAME_TO, FLAG_FILTER_KEY_INVALID, FLAG_WATCH_SUBTREE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfinalize()poll()register(Path path, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier[] modifiers) booleanreset(PathWatchKey pathWatchKey) take()Methods inherited from class name.pachler.nio.file.impl.PathWatchService
checkAndCastToPathImpl, makeFlagMask
-
Constructor Details
-
WindowsPathWatchService
public WindowsPathWatchService()
-
-
Method Details
-
register
public PathWatchKey register(Path path, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier[] modifiers) throws IOException - Specified by:
registerin classPathWatchService- Throws:
IOException
-
reset
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWatchService- Throws:
IOException
-
poll
- Specified by:
pollin classWatchService- Throws:
InterruptedExceptionClosedWatchServiceException
-
poll
public WatchKey poll(long timeout, TimeUnit unit) throws InterruptedException, ClosedWatchServiceException - Specified by:
pollin classWatchService- Throws:
InterruptedExceptionClosedWatchServiceException
-
take
- Specified by:
takein classWatchService- Throws:
InterruptedExceptionClosedWatchServiceException
-
finalize
-