Package org.aoju.bus.core.io.watcher
Class IgnoreWatcher
java.lang.Object
org.aoju.bus.core.io.watcher.IgnoreWatcher
- All Implemented Interfaces:
Watcher
- Direct Known Subclasses:
LineReadWatcher,SimpleWatcher
跳过所有事件处理Watcher 用户继承此类后实现需要监听的方法
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonCreate(WatchEvent<?> event, Path currentPath) 文件创建时执行的方法voidonDelete(WatchEvent<?> event, Path currentPath) 文件删除时执行的方法voidonModify(WatchEvent<?> event, Path currentPath) 文件修改时执行的方法 文件修改可能触发多次voidonOverflow(WatchEvent<?> event, Path currentPath) 事件丢失或出错时执行的方法
-
Constructor Details
-
IgnoreWatcher
public IgnoreWatcher()
-
-
Method Details
-
onCreate
Description copied from interface:Watcher文件创建时执行的方法 -
onModify
Description copied from interface:Watcher文件修改时执行的方法 文件修改可能触发多次 -
onDelete
Description copied from interface:Watcher文件删除时执行的方法 -
onOverflow
Description copied from interface:Watcher事件丢失或出错时执行的方法- Specified by:
onOverflowin interfaceWatcher- Parameters:
event- 事件currentPath- 事件发生的当前Path路径
-