@Override
  public boolean setIfGreater(long update) {
    while (true) {
      long cur = get();

      if (update > cur) {
        if (compareAndSet(cur, update)) {
          return true;
        }
      } else {
        return false;
      }
    }
  }
Use it only when threads are doing incremental updates. If updates are random then this method
may not be optimal.
geode-core/src/main/java/org/apache/geode/internal/concurrent/AtomicLong5.java