Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4
Description
The current implementation of the org.apache.commons.io.input.Tailer class doesn't allow you to get notified after an execution.
This can be a problem when a single execution processes thousands of lines (= http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/input/TailerListener.html#handle(java.lang.String) will be called for every line) and you want to perform a resource-intensive task at the end of all this.
The solution to this problem would be to add a handleEnd() method to the TailerListener interface and to call it from the Tailer class somewhere after the readLines call the the horrible Thread.sleep call.