public static boolean hasWaitingRequests(DistributedLockService dlock, Object name) {
    DLockGrantor grantor = null;
    try {
      grantor = DLockGrantor.waitForGrantor((DLockService) dlock);
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
    }
    if (grantor != null) {
      return grantor.hasWaitingRequests(name);
    }
    return false;
  }
Returns true if the grantor has waiting lock requests for the named lock
geode-core/src/distributedTest/java/org/apache/geode/distributed/internal/locks/DLockGrantorHelper.java