summaryrefslogtreecommitdiffstats
path: root/statistics/src/main/java/com/yahoo/statistics/CounterProxy.java
diff options
context:
space:
mode:
Diffstat (limited to 'statistics/src/main/java/com/yahoo/statistics/CounterProxy.java')
-rw-r--r--statistics/src/main/java/com/yahoo/statistics/CounterProxy.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/statistics/src/main/java/com/yahoo/statistics/CounterProxy.java b/statistics/src/main/java/com/yahoo/statistics/CounterProxy.java
new file mode 100644
index 00000000000..5c3475bc640
--- /dev/null
+++ b/statistics/src/main/java/com/yahoo/statistics/CounterProxy.java
@@ -0,0 +1,31 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.statistics;
+
+
+/**
+ * To be able to cache events concerning Counters internally, group them
+ * together and similar.
+ *
+ * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
+ */
+class CounterProxy extends Proxy {
+ private long raw;
+ private boolean hasRaw = false;
+
+ CounterProxy(String name) {
+ super(name);
+ }
+
+ boolean hasRaw() {
+ return hasRaw;
+ }
+ long getRaw() {
+ return raw;
+ }
+ void setRaw(long raw) {
+ hasRaw = true;
+ this.raw = raw;
+ }
+
+}
+