[
https://issues.apache.org/jira/browse/IO-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14168610#comment-14168610
]
Sebb commented on IO-456:
-------------------------
Note: adding a method to an interface is binary compatible [1], however it will
break source compatibility.
[1] http://docs.oracle.com/javase/specs/jls/se7/html/jls-13.html#jls-13.5.3
> 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
> Labels: performance
>
> 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)