Class AtomicUtils

java.lang.Object
org.apache.hadoop.hbase.util.AtomicUtils

@Private public final class AtomicUtils extends Object
Utilities related to atomic operations.
  • Constructor Details

  • Method Details

    • updateMin

      public static void updateMin(AtomicLong min, long value)
      Updates a AtomicLong which is supposed to maintain the minimum values. This method is not synchronized but is thread-safe.
    • updateMax

      public static void updateMax(AtomicLong max, long value)
      Updates a AtomicLong which is supposed to maintain the maximum values. This method is not synchronized but is thread-safe.