code: private void updateLastAppliedIndex(long index) {
          checkArgument(index >= 0, "index must be >=0: given:%s", index);
          checkArgument(index >= lastAppliedIndex, "lastAppliedIndex not increasing monotonically: lastAppliedIndex:%s index:%s", lastAppliedIndex, index);
  
          lastAppliedIndex = index;
      }
docs: Update the value of {@link LocalStore#lastAppliedIndex}.
  <p/>
  Unlike {@link LocalStore#incrementLastAppliedIndex(long)}, this method
  allows the caller to set the new value {@code lastAppliedIndex} to <strong>any</strong>
  value greater than its current value
  
  @param index new value of {@code lastAppliedIndex}
  @throws IllegalArgumentException if {@code lastAppliedIndex} is not positive or {@code index <= lastAppliedIndex}