public static interface FileWatcher.EventHandler
You need to implement your own processing logic based on application requirements.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onEvent(WatchEvent<?> event) |
Called when a specified event occurs.
|
void onEvent(WatchEvent<?> event)
event - Indicates the file directory event to monitor.