public abstract class LogRecordHandler extends Object
BooleanLogRecordHandler
instead which allows for a
simpler interface.BooleanLogRecordHandler
Modifier and Type | Field and Description |
---|---|
static List<Redwood.Record> |
EMPTY
An empty list to serve as the FALSE token for filters
|
Constructor and Description |
---|
LogRecordHandler() |
Modifier and Type | Method and Description |
---|---|
abstract List<Redwood.Record> |
handle(Redwood.Record record)
Handle a log Record, either as a filter or by producing a side effect.
|
List<Redwood.Record> |
signalEndTrack(int newDepth,
long timeEnded)
Signal the end of a track, i.e.
|
List<Redwood.Record> |
signalShutdown() |
List<Redwood.Record> |
signalStartTrack(Redwood.Record signal)
Signal the start of a track, i.e.
|
public static final List<Redwood.Record> EMPTY
public abstract List<Redwood.Record> handle(Redwood.Record record)
record
- The log record to handlepublic List<Redwood.Record> signalStartTrack(Redwood.Record signal)
signal
- A record corresponding to the information in the track header.
The depth in this object is the old log depth.public List<Redwood.Record> signalEndTrack(int newDepth, long timeEnded)
newDepth
- The new depth; that is, the current depth - 1.public List<Redwood.Record> signalShutdown()