@Test public void initialValueIsReported() { value.set(FIVE); assertThat(longGauge.getValue()).isEqualTo(FIVE); }
@Override public synchronized Long getValue() { long currentValue = underlying.getAsLong(); long previous = previousValue; previousValue = currentValue; return currentValue - previous; }
ZeroBasedDeltaGauge implements Gauge<Long> { @Override public synchronized Long getValue() { long currentValue = underlying.getAsLong(); long previous = previousValue; previousValue = currentValue; return currentValue - previous; } }
ZeroBasedDeltaGauge implements Gauge<Long> { @Override public synchronized Long getValue() { long currentValue = underlying.getAsLong(); long previous = previousValue; previousValue = currentValue; return currentValue - previous; } ZeroBasedDeltaGauge(LongSupplier underlying); }
ZeroBasedDeltaGauge implements Gauge<Long> { @Override public synchronized Long getValue() { long currentValue = underlying.getAsLong(); long previous = previousValue; previousValue = currentValue; return currentValue - previous; } ZeroBasedDeltaGauge(LongSupplier underlying); @Override synchronized Long getValue(); }
ZeroBasedDeltaGauge implements Gauge<Long> { @Override public synchronized Long getValue() { long currentValue = underlying.getAsLong(); long previous = previousValue; previousValue = currentValue; return currentValue - previous; } ZeroBasedDeltaGauge(LongSupplier underlying); @Override synchronized Long getValue();  }