I spent some time experimenting with this, and this is my conclusion:
An event is repeated for the file fand event type eif fseveral type events have occurred in the same file e.
If an event of the type eoccurred with several files f1, f2and f3, but only once each, then none of these events are repeated.
.take() a WatchKey WatchService, WatchEvent , , , . .count() 1, WatchKey WatchService.
, A.txt , :
B.txt .B.txt .A.txt .B.txt .A.txt .
WatchEvents:
- create
B.txt. B.txt.A.txt. .count() 2.- delete
B.txt.
, 3*n WatchKey, n - , .
, StandardWatchEventKinds, OVERFLOW , , .