mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
07f9411345
commit
8c10355ecd
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ public class LongCounter extends AbstractMetric<Long> implements CounterMetric<L
|
|||
|
||||
private static final IllegalArgumentException NEGATIVE_COUNT_EXCEPTION = new IllegalArgumentException("Counters can not be incremented by negative values");
|
||||
private LongAdder longAdder;
|
||||
private volatile boolean dirty;
|
||||
private boolean dirty;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
|
|
@ -8,7 +8,7 @@ import org.logstash.instrument.metrics.AbstractMetric;
|
|||
*/
|
||||
public abstract class AbstractGaugeMetric<T> extends AbstractMetric<T> implements GaugeMetric<T,T>{
|
||||
|
||||
private volatile boolean dirty;
|
||||
private boolean dirty;
|
||||
|
||||
private volatile T value;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue