public interface TailerListener
Tailer.| Modifier and Type | Method and Description |
|---|---|
void |
fileNotFound()
Called if the tailed file is not found.
|
void |
fileRotated()
Called if a file rotation is detected.
|
void |
handle(Exception e)
Called when an Exception is thrown.
|
void |
handle(String line)
Called when a line is read.
|
void |
init(Tailer tailer)
Called during construction, giving the listener a method of stopping the tailer.
|
void fileNotFound()
Note: this is called from the tailer thread.
void fileRotated()
Note: Called from the tailer thread.
void handle(Exception e)
Note: Called from the tailer thread.
e - the exception.void handle(String line)
Note: Called from the tailer thread.
line - the line.void init(Tailer tailer)
tailer - the tailer.