?? TailerListener

???????:
TailerListenerAdapter

public interface TailerListener
Listener for events from a Tailer.
???????:
2.0
  • ????

    ??????
    ??
    ??
    void
    This method is called if the tailed file is not found.
    void
    Called if a file rotation is detected.
    void
    Handles an Exception .
    void
    handle(String line)
    Handles a line from a Tailer.
    void
    init(Tailer tailer)
    The tailer will call this method during construction, giving the listener a method of stopping the tailer.
  • ??????

    • init

      void init(Tailer tailer)
      The tailer will call this method during construction, giving the listener a method of stopping the tailer.
      ??:
      tailer - the tailer.
    • fileNotFound

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

      Note: this is called from the tailer thread.

    • fileRotated

      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.

      Note: this is called from the tailer thread.

    • handle

      void handle(String line)
      Handles a line from a Tailer.

      Note: this is called from the tailer thread.

      ??:
      line - the line.
    • handle

      void handle(Exception ex)
      Handles an Exception .

      Note: this is called from the tailer thread.

      ??:
      ex - the exception.