Makes Tailer use ScheduledExecutorService from Java 5
This has multiple benefits:
- it provides periodic runs of the read operations without needing to invoke Thread.sleep().
- it removes any looping from the run() method, making for cleaner code.
- generally brings Tailer closer to what modern Java looks like.
No public API changes have been made. All tests are passing without modifications.
@triceo May you rebase on master?
@triceo May you plerase rebase on master? The implementation has changed to use the builder pattern with an internal Duration instead of long to track the sleep delay. It looks like the code needs to be adapted to configure the builder with an executor.
@garydgregory I may eventually get to it, but considering that the original PR is from 2014, I have moved on.
Either it's useful or not, regardless of your moving about 😉