mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add stop for Tailer
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
* 【extra 】 Ftp的remoteVerificationEnabled改为false(issue#I3OSA2@Gitee)
|
* 【extra 】 Ftp的remoteVerificationEnabled改为false(issue#I3OSA2@Gitee)
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复createScheduledExecutor单位不是毫秒的问题(issue#I3OYIW@Gitee)
|
* 【core 】 修复createScheduledExecutor单位不是毫秒的问题(issue#I3OYIW@Gitee)
|
||||||
|
* 【core 】 修复Tailer无stop问题(issue#I3PQLQ@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -133,6 +133,13 @@ public class Tailer implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束,此方法需在异步模式或
|
||||||
|
*/
|
||||||
|
public void stop(){
|
||||||
|
this.executorService.shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------- Private method start
|
// ---------------------------------------------------------------------------------------- Private method start
|
||||||
/**
|
/**
|
||||||
* 预读取行
|
* 预读取行
|
||||||
@@ -220,4 +227,5 @@ public class Tailer implements Serializable {
|
|||||||
Console.log(line);
|
Console.log(line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user