blob: ad7b8c1c8a4c072c1e1e8adf767d8d7c50987d9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2017 Yahoo Holdings. 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;
}
}
|