public boolean isTimeLimit(Store store, long now) {
    if (closeCheckTimeLimit <= 0) {
      return false;
    }

    final long elapsedMillis = now - lastCloseCheckMillis;
    if (elapsedMillis <= closeCheckTimeLimit) {
      return false;
    }

    lastCloseCheckMillis = now;
    return !store.areWritesEnabled();
  }
Check periodically to see if a system stop is requested every time.
@return if true, system stop.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CloseChecker.java