com.xiaoleilu.hutool.io.watch.watchers.IgnoreWatcher Maven / Gradle / Ivy
package com.xiaoleilu.hutool.io.watch.watchers;
import java.nio.file.Path;
import java.nio.file.WatchEvent;
import com.xiaoleilu.hutool.io.watch.Watcher;
/**
* 跳过所有事件处理Watcher
* 用户继承此类后实现需要监听的方法
*
* @author Looly
* @since 3.1.0
*/
public class IgnoreWatcher implements Watcher {
@Override
public void onCreate(WatchEvent> event, Path currentPath) {
}
@Override
public void onModify(WatchEvent> event, Path currentPath) {
}
@Override
public void onDelete(WatchEvent> event, Path currentPath) {
}
@Override
public void onOverflow(WatchEvent> event, Path currentPath) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy