Package org.apache.hadoop.hbase.util
Class AtomicUtils
java.lang.Object
org.apache.hadoop.hbase.util.AtomicUtils
Utilities related to atomic operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
updateMax
(AtomicLong max, long value) Updates a AtomicLong which is supposed to maintain the maximum values.static void
updateMin
(AtomicLong min, long value) Updates a AtomicLong which is supposed to maintain the minimum values.
-
Constructor Details
-
AtomicUtils
private AtomicUtils()
-
-
Method Details
-
updateMin
Updates a AtomicLong which is supposed to maintain the minimum values. This method is not synchronized but is thread-safe. -
updateMax
Updates a AtomicLong which is supposed to maintain the maximum values. This method is not synchronized but is thread-safe.
-