Skip to content

WatchService-based DirectoryWatcher (à la Apache Commons IO FileMonitor) #2030

@vorburger

Description

@vorburger

Perhaps people would find it useful to find a utility to watch for file changes in Guava? I would have. ;-)

Apache Commons IO had a FileMonitor; that was based on polling files from a background thread. I just published something similar, but mine is based on the modern Java 7 JDK's WatchService instead, see http://blog2.vorburger.ch/2015/04/java-7-watchservice-based.html; DirectoryWatcher etc. src currently part of https://github.com/vorburger/HoTea - if this is of any interest, do let me know here; no offense taken either if you close this as N/A.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions