Package org.HdrHistogram
Interface HistogramLogScanner.EventHandler
- Enclosing class:
HistogramLogScanner
public static interface HistogramLogScanner.EventHandler
Handles log events, return true to stop processing.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanonBaseTime(double secondsSinceEpoch) booleanbooleanbooleanonHistogram(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 theEncodableHistogramanyway.booleanonStartTime(double secondsSinceEpoch)
-
Method Details
-
onComment
-
onBaseTime
boolean onBaseTime(double secondsSinceEpoch) -
onStartTime
boolean onStartTime(double secondsSinceEpoch) -
onHistogram
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 theEncodableHistogramanyway. The reader is to be called only once.- Parameters:
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.- Returns:
- true to stop processing, false to continue.
-
onException
-