|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplayListener
Objects that wish to read a log must implement the ReplayListener interface.
Logger.replay(ReplayListener,long)
Method Summary | |
---|---|
LogRecord |
getLogRecord()
Called by Logger when ReplayListener is registered for replay. |
void |
onError(LogException exception)
Called by Logger when an exception is encountered during replay. |
void |
onRecord(LogRecord lr)
Called by Logger for each record retrieved from the log. |
Method Detail |
---|
void onRecord(LogRecord lr)
when the entire log has been processed, lr.type is set to LogRecordType.END_OF_LOG.
lr
- LogRecord to be processedvoid onError(LogException exception)
exception
- LogException object that was thrown
when the error occurred.LogRecord getLogRecord()
The Logger calls getLogRecord to obtain a LogRecord instance to be used to process log records.
The same LogRecord instance is used to return all log records to the ReplayListener.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |