public int numDelayedRequests() {
    synchronized (lock) {
      return delayedRequestsQueue.size();
    }
  }
Returns the number of delayed SamzaResource requests in the queue.
@return the number of delayed requests
samza-core/src/main/java/org/apache/samza/clustermanager/ResourceRequestState.java