Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-446

adds an endOfFileReached method to the TailerListener

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.5
    • Utilities

    Description

      My use case is tailing a log and publishing to a websocket. I found that using the handleLine method resulted in too many messages being published. Using a buffer in my listener and only publishing on endOfFileReached was a really simple solution.

      Attachments

        1. tailer-end-of-file.patch
          5 kB
          Jeffrey Barrus

        Activity

          People

            krosenvold Kristian Rosenvold
            barrusj Jeffrey Barrus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: