Package io.engineblock.metrics
Class ClassicTimerListener
- java.lang.Object
-
- io.engineblock.metrics.CapabilityHook<TimerAttachment>
-
- io.engineblock.metrics.ClassicTimerListener
-
- All Implemented Interfaces:
com.codahale.metrics.MetricRegistryListener,java.util.EventListener
public class ClassicTimerListener extends CapabilityHook<TimerAttachment>
-
-
Constructor Summary
Constructors Constructor Description ClassicTimerListener(com.codahale.metrics.MetricRegistry metricRegistry, java.lang.String sessionName, java.lang.String prefix, java.util.regex.Pattern pattern, java.lang.String interval, java.util.concurrent.TimeUnit nanoseconds)
-
Method Summary
Modifier and Type Method Description protected java.lang.Class<TimerAttachment>getCapabilityClass()voidonCapableAdded(java.lang.String name, TimerAttachment capable)voidonCapableRemoved(java.lang.String name, TimerAttachment capable)-
Methods inherited from class io.engineblock.metrics.CapabilityHook
onCounterAdded, onCounterRemoved, onGaugeAdded, onGaugeRemoved, onHistogramAdded, onHistogramRemoved, onMeterAdded, onMeterRemoved, onTimerAdded, onTimerRemoved
-
-
-
-
Method Detail
-
onCapableAdded
public void onCapableAdded(java.lang.String name, TimerAttachment capable)- Specified by:
onCapableAddedin classCapabilityHook<TimerAttachment>
-
onCapableRemoved
public void onCapableRemoved(java.lang.String name, TimerAttachment capable)- Specified by:
onCapableRemovedin classCapabilityHook<TimerAttachment>
-
getCapabilityClass
protected java.lang.Class<TimerAttachment> getCapabilityClass()
- Specified by:
getCapabilityClassin classCapabilityHook<TimerAttachment>
-
-