add stop for Tailer

This commit is contained in:
Looly 2021-05-08 08:23:33 +08:00
parent 5697b4b7b0
commit 7c866e10e0
2 changed files with 18 additions and 9 deletions

View File

@ -11,6 +11,7 @@
* 【extra 】 Ftp的remoteVerificationEnabled改为falseissue#I3OSA2@Gitee
### 🐞Bug修复
* 【core 】 修复createScheduledExecutor单位不是毫秒的问题issue#I3OYIW@Gitee
* 【core 】 修复Tailer无stop问题issue#I3PQLQ@Gitee
-------------------------------------------------------------------------------------------------------------

View File

@ -133,6 +133,13 @@ public class Tailer implements Serializable {
}
}
/**
* 结束此方法需在异步模式或
*/
public void stop(){
this.executorService.shutdown();
}
// ---------------------------------------------------------------------------------------- Private method start
/**
* 预读取行
@ -220,4 +227,5 @@ public class Tailer implements Serializable {
Console.log(line);
}
}
}