Andrew Bourgeois created IO-456:
-----------------------------------

             Summary: TailerListenerAdapter: handleEnd() method
                 Key: IO-456
                 URL: https://issues.apache.org/jira/browse/IO-456
             Project: Commons IO
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 2.4
            Reporter: Andrew Bourgeois
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to