Class LineReadWatcher

java.lang.Object
org.aoju.bus.core.io.watcher.IgnoreWatcher
org.aoju.bus.core.io.file.LineReadWatcher
All Implemented Interfaces:
Runnable, Watcher

public class LineReadWatcher extends IgnoreWatcher implements Runnable
行处理的Watcher实现
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • onModify

      public void onModify(WatchEvent<?> event, Path currentPath)
      Description copied from interface: Watcher
      文件修改时执行的方法 文件修改可能触发多次
      Specified by:
      onModify in interface Watcher
      Overrides:
      onModify in class IgnoreWatcher
      Parameters:
      event - 事件
      currentPath - 事件发生的当前Path路径