I have much better response times if I change
folder.register(watcher, StandardWatchEventKinds.ENTRY_MODIFY);
to
folder.register(watcher, new WatchEvent.Kind[]{StandardWatchEventKinds.ENTRY_MODIFY}, SensitivityWatchEventModifier.HIGH);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…