Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.codahale.metrics;
  
Listeners for events from the registry. Listeners must be thread-safe.
  
  public interface MetricRegistryListener extends EventListener {
    
A no-op implementation of MetricRegistryListener.
 
     abstract class Base implements MetricRegistryListener {
         @Override
         public void onGaugeAdded(String nameGauge<?> gauge) {
         }
 
         @Override
         public void onGaugeRemoved(String name) {
         }
 
         @Override
         public void onCounterAdded(String nameCounter counter) {
         }
 
         @Override
         public void onCounterRemoved(String name) {
         }
 
         @Override
         public void onHistogramAdded(String nameHistogram histogram) {
         }
 
         @Override
         public void onHistogramRemoved(String name) {
         }
 
         @Override
         public void onMeterAdded(String nameMeter meter) {
         }
 
         @Override
         public void onMeterRemoved(String name) {
         }
 
         @Override
         public void onTimerAdded(String nameTimer timer) {
         }
 
         @Override
         public void onTimerRemoved(String name) {
         }
     }

    
Called when a Gauge is added to the registry.

Parameters:
name the gauge's name
gauge the gauge
 
     void onGaugeAdded(String nameGauge<?> gauge);

    
Called when a Gauge is removed from the registry.

Parameters:
name the gauge's name
 
     void onGaugeRemoved(String name);

    
Called when a Counter is added to the registry.

Parameters:
name the counter's name
counter the counter
 
     void onCounterAdded(String nameCounter counter);

    
Called when a Counter is removed from the registry.

Parameters:
name the counter's name
 
     void onCounterRemoved(String name);

    
Called when a Histogram is added to the registry.

Parameters:
name the histogram's name
histogram the histogram
 
     void onHistogramAdded(String nameHistogram histogram);

    
Called when a Histogram is removed from the registry.

Parameters:
name the histogram's name
 
     void onHistogramRemoved(String name);

    
Called when a Meter is added to the registry.

Parameters:
name the meter's name
meter the meter
    void onMeterAdded(String nameMeter meter);

    
Called when a Meter is removed from the registry.

Parameters:
name the meter's name
    void onMeterRemoved(String name);

    
Called when a Timer is added to the registry.

Parameters:
name the timer's name
timer the timer
    void onTimerAdded(String nameTimer timer);

    
Called when a Timer is removed from the registry.

Parameters:
name the timer's name
    void onTimerRemoved(String name);
New to GrepCode? Check out our FAQ X