@FunctionalInterface public interface WatchAction
Modifier and Type | Method and Description |
---|---|
void |
doAction(WatchEvent<?> event,
Path currentPath)
事件处理,通过实现此方法处理各种事件。
|
void doAction(WatchEvent<?> event, Path currentPath)
WatchEvent.kind()
获取,对应事件见WatchKind
event
- 事件currentPath
- 事件发生的当前Path路径Copyright © 2024. All rights reserved.