Interface StatsdWrapper

All Known Implementing Classes:
StatsdClient

public interface StatsdWrapper
Wraps regular UDP based StatsD client with concurrent hostname refreshing logic.
Author:
Tom Hadlaw (thomas.hadlaw@hootsuite.com)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    increment(String key, int amount)
    Runs a StatsD increment in a safe way.
    void
    time(String key, long duration)
    Runs a StatsD timer state in a safe way.
  • Method Details

    • increment

      void increment(String key, int amount)
      Runs a StatsD increment in a safe way.
      Parameters:
      key - the bucket key
      amount - amount to increment
    • time

      void time(String key, long duration)
      Runs a StatsD timer state in a safe way.
      Parameters:
      key - the bucket key
      duration - the duration