Interface TailerListener


public interface TailerListener
Listener for events from a Tailer. Abstracted from apache commons.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called each time the Tailer reaches the end of the file.
    default void
    This method is called if the tailed file is not found.
    default void
    Called if a file rotation is detected.
    default void
    handle(String line)
    Handles a line from a Tailer.
  • Method Details

    • handle

      default void handle(String line)
      Handles a line from a Tailer.
      Parameters:
      line - the line.
    • fileRotated

      default void fileRotated()
      Called if a file rotation is detected. This method is called before the file is reopened, and fileNotFound may be called if the new file has not yet been created.
    • endOfFileReached

      default void endOfFileReached()
      Called each time the Tailer reaches the end of the file.
    • fileNotFound

      default void fileNotFound()
      This method is called if the tailed file is not found.