public void setDelayCheckAndSend(boolean value) {
      synchronized (checkDelay) {
        doDelayCheckAndSend = value;
        if (!value) {
          checkDelay.notifyAll();
        }
      }
    }
@param timeoutMs
@return false if the time elapsed
@throws InterruptedException
llap-tez/src/test/org/apache/hadoop/hive/llap/tezplugins/TestLlapTaskSchedulerService.java