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

Method getCounter

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

Source from the content-addressed store, hash-verified

80 }
81
82 public long getCounter(String key) {
83 Long val = counters_.get(key);
84 if (val == null) {
85 return 0;
86 }
87 return val.longValue();
88 }
89
90 public void setOption(String key, String value) {
91 options_.put(key, value);

Callers 1

incrementCounterMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected