Class GlobalMetrics


  • public final class GlobalMetrics
    extends Object
    • Method Detail

      • incr

        public static void incr​(String counterName)
        Not thread safe increment of counterName. Counter doesn't exist unless incremented once
      • incrBy

        public static void incrBy​(String counterName,
                                  int incVal)
        Not thread safe 'incrementing by' of counterName. Counter doesn't exist unless incremented once
      • safeIncr

        public static void safeIncr​(String counterName)
        Thread safe created increment of counterName. (Slow)
      • safeIncrBy

        public static void safeIncrBy​(String counterName,
                                      int incVal)
        Thread safe created increment of counterName. (Slow)