public interface ReplayListener
Logger.replay(ReplayListener,long)
Modifier and Type | Method and Description |
---|---|
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.
|
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.
Copyright © 2017 ObjectWeb HOWL. All rights reserved.