Package com.arpnetworking.tsdcore.sinks
Class PeriodFilteringSink
java.lang.Object
com.arpnetworking.tsdcore.sinks.BaseSink
com.arpnetworking.tsdcore.sinks.PeriodFilteringSink
- All Implemented Interfaces:
Sink
A publisher that wraps another, filters the metrics with specific periods,
and forwards included metrics to the wrapped sink. This class is thread
safe.
- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot io)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
BasePeriodFilteringSink.Builder
implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Called to allow the publisher to clean-up.void
recordAggregateData
(PeriodicData periodicData) Called when an additionalPeriodicData
instance is available for publication.Generate a Steno log compatible representation.Methods inherited from class com.arpnetworking.tsdcore.sinks.BaseSink
getMetricSafeName, getName, toString
-
Method Details
-
recordAggregateData
Description copied from interface:Sink
Called when an additionalPeriodicData
instance is available for publication.- Parameters:
periodicData
- ThePeriodicData
to be published.
-
close
public void close()Description copied from interface:Sink
Called to allow the publisher to clean-up. No further calls to recordAggregation will be made after a call to close. -
toLogValue
Description copied from class:BaseSink
Generate a Steno log compatible representation.- Overrides:
toLogValue
in classBaseSink
- Returns:
- Steno log compatible representation.
-