synchronized void tryUpdatePoolSize(long timeout) {
    if (!reconfigNotification) {
      return;
    }
    reconfigNotification = false;
    long stopTime = EnvironmentEdgeManager.currentTime() + timeout;
    while (cleanerLatch != 0 && timeout > 0) {
      try {
        wait(timeout);
        timeout = stopTime - EnvironmentEdgeManager.currentTime();
      } catch (InterruptedException ie) {
        Thread.currentThread().interrupt();
        break;
      }
    }
    LOG.info("Update {} chore's pool size from {} to {}", name, pool.getPoolSize(), size);
    pool.setCorePoolSize(size);
  }
Checks if pool can be updated. If so, mark for update later.
@param conf configuration
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/DirScanPool.java