xinzhongtianxia opened a new pull request #4506:
URL: https://github.com/apache/iotdb/pull/4506


   ## Description
   I did two things in this pr
   1. Add a new gauge implement
       In some instance, say, we want to monitor a list or a queue's size, it's 
not convenient and has low performance to set the value every time the list or 
queue's size changed.
       The new gauge implement is designed for this instance.
   2. Add incr and decr method for gauge interface.
      In some cases, we may need to get the current value, add or decrease , 
then put it back. 
      Since the current `setValue` method cannot guarantee the atomicity of 
this operation, I added incr and decr method to the gauge interface.
       
   related jira : https://issues.apache.org/jira/browse/IOTDB-2017
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to