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

adds an endOfFileReached method to the TailerListener

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Utilities
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: