MCPcopy Create free account
hub / github.com/apache/thrift / incrementCounter

Method incrementCounter

contrib/fb303/java/src/FacebookBase.java:61–65  ·  view source on GitHub ↗
(String key)

Source from the content-addressed store, hash-verified

59 }
60
61 public long incrementCounter(String key) {
62 long val = getCounter(key) + 1;
63 counters_.put(key, val);
64 return val;
65 }
66
67 public long incrementCounter(String key, long increment) {
68 long val = getCounter(key) + increment;

Callers

nothing calls this directly

Calls 2

getCounterMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected