public void addResourceRequest(SamzaResourceRequest request) {
    synchronized (lock) {
      if (request.getRequestTimestamp().isAfter(Instant.now())) {
        delayedRequestsQueue.add(request);
        return;
      }

      // Send request immediately if the request timestamp is not in the future.
      sendResourceRequest(request);
    }
  }
Sends a {@link SamzaResourceRequest} to the {@link ClusterResourceManager} and queues the {@link SamzaResourceRequest}
to be matched with the {@link SamzaResource} when it is provisioned.

@param request {@link SamzaResourceRequest} to be sent and queued.
samza-core/src/main/java/org/apache/samza/clustermanager/ResourceRequestState.java