public static interface HistogramLogScanner.EventHandler
Modifier and Type | Method | Description |
---|---|---|
boolean |
onBaseTime(double secondsSinceEpoch) |
|
boolean |
onComment(String comment) |
|
boolean |
onException(Throwable t) |
|
boolean |
onHistogram(String tag,
double timestamp,
double length,
HistogramLogScanner.EncodableHistogramSupplier lazyReader) |
A lazy reader is provided to allow fast skipping of bulk of work where tag or timestamp are to be used as
a basis for filtering the
EncodableHistogram anyway. |
boolean |
onStartTime(double secondsSinceEpoch) |
boolean onComment(String comment)
boolean onBaseTime(double secondsSinceEpoch)
boolean onStartTime(double secondsSinceEpoch)
boolean onHistogram(String tag, double timestamp, double length, HistogramLogScanner.EncodableHistogramSupplier lazyReader)
EncodableHistogram
anyway. The reader is to be called only once.tag
- histogram tag or null if none existtimestamp
- logged timestamplength
- logged interval lengthlazyReader
- to be called if the histogram needs to be deserialized, given the tag/timestamp etc.boolean onException(Throwable t)
Copyright © 2019. All rights reserved.