Package com.seeq.utilities
Class PollingWatchServiceForMacOs
java.lang.Object
com.seeq.utilities.PollingWatchServiceForMacOs
- All Implemented Interfaces:
Closeable
,AutoCloseable
,WatchService
A Seeq custom copy of PollingWatchService, which, as part of a internal sun package in the jvm implementation, is
inaccessible for projects compiled by Java 11 but targeting Java 8 (since it's not part of the public API of Java 8).
Alterations include:
- hard-coding the 'sensitivity' (polling frequency) to 2s
- code style changes to fit Seeq standards
- using the Java 8 thread constructor (the rest of the file is copied from the Java 11 impl)
- included several dependent classes (AbstractWatchService and AbstractWatchKey)
-
Method Summary
-
Method Details
-
poll
- Specified by:
poll
in interfaceWatchService
-
poll
- Specified by:
poll
in interfaceWatchService
- Throws:
InterruptedException
-
take
- Specified by:
take
in interfaceWatchService
- Throws:
InterruptedException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceWatchService
- Throws:
IOException
-