All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.timgroup.statsd.NoOpStatsDClient Maven / Gradle / Ivy

Go to download

A tiny library allowing Java applications to communicate with statsd instances easily.

The newest version!
package com.timgroup.statsd;

/**
 * A No-Op StatsDClient, which can be substituted in when metrics are not
 * required.
 * 
 * @author Tom Denley
 *
 */
public final class NoOpStatsDClient extends ConvenienceMethodProvidingStatsDClient {
    @Override public void stop() { }
    @Override public void count(String aspect, long delta, double sampleRate) { }
    @Override public void recordGaugeValue(String aspect, long value) { }
    @Override public void recordGaugeValue(String aspect, double value) { }
    @Override public void recordGaugeDelta(String aspect, long delta) { }
    @Override public void recordGaugeDelta(String aspect, double delta) { }
    @Override public void recordSetEvent(String aspect, String value) { }
    @Override public void recordExecutionTime(String aspect, long timeInMs, double sampleRate) { }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy