File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,14 @@ a java file watcher that works across platforms and supports recursion, single f
77Features:
88
99- monitor a single file (or directory) for changes
10- - monitor a directory for changes to it's direct descendants
11- - monitor a directory for changes for all it's descendants (aka recursive directory watch)
10+ - monitor a directory for changes to its direct descendants
11+ - monitor a directory for changes for all its descendants (aka recursive directory watch)
1212- edge cases dealt with:
13- - in case of overflow we will still generate events for new descendants
1413 - recursive watches will also continue in new directories
1514 - multiple watches for the same directory are merged to avoid overloading the kernel
1615 - events are processed in a configurable worker pool
16+ - when an overflow happens, automatically approximate the events that were
17+ missed using a configurable auto-handler
1718
1819Planned features:
1920
@@ -39,6 +40,7 @@ Start using java-watch:
3940var directory = Path . of(" tmp" , " test-dir" );
4041var watcherSetup = Watcher . watch(directory, WatchScope . PATH_AND_CHILDREN )
4142 .withExecutor(Executors . newCachedThreadPool()) // optionally configure a custom thread pool
43+ .approximate(OnOverflow . DIRTY ) // optionally configure an auto-handler for overflows
4244 .on(watchEvent - > {
4345 System . err. println(watchEvent);
4446 });
You can’t perform that action at this time.
0 commit comments