Class PollingWatchServiceForMacOs

java.lang.Object
com.seeq.utilities.PollingWatchServiceForMacOs
All Implemented Interfaces:
Closeable, AutoCloseable, WatchService

public class PollingWatchServiceForMacOs extends Object
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)