openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Refactor WatchService

Open J-N-K opened this issue 2 years ago • 0 comments

Depends on #2994

This replaces the AbstractWatchService with a new WatchService interface and implementation that can be consumed as OSGi service. It makes use of a library that does a lot of what we currently do (hashing, removing duplicate events) and also implements a native watch service on MacOS which decreases response time to file changes.

  • [x] Implement WatchService
  • [x] Adjust implementations
  • [x] Remove Java17 changes to core (should be merged in a separate PR).
  • [ ] Resolve itests (not done yet as it will create unnecessary merge conflicts)

@wborn Since we discussed this issue in the past, WDYT about the design?

J-N-K avatar Jun 16 '22 13:06 J-N-K