Gauge (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.metrics

## Interface Gauge

-     public interface Gauge

  A Gauge is an application provided object which will be called by the framework in order to sample the value of an integer value.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Number` | `get()` Returns the current value associated with this gauge.

- - ### Method Detail

    - #### get

          Number get()

      Returns the current value associated with this gauge. The MetricsProvider will call this callback without taking care of synchronization, it is up to the application to handle thread safety.
      Returns:
        the current value for the gauge

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.